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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin975
RA = 157.121, Dec = -2.5829
tmin = 492048001, tmax = 492307201
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='909995', job_status='RUN', time_executed='2021-09-01 23:37:50.699787', time_epoch_executed='1630564670.7' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909995/ft1_4FGL_J1028.4-0234_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909995/ft2_4FGL_J1028.4-0234_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909995/ft1_4FGL_J1028.4-0234_daily_bin975.fits outfile=/scratch/kocevski/909995/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin975.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=492048001.0 tmax=492307201.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.84
user 3.56
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909995/ft1_filtered_4FGL_J1028.4-0234_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/909995/ft2_4FGL_J1028.4-0234_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/909995/ltcube_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.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/909995/ft2_4FGL_J1028.4-0234_daily_bin975.fits
.....................!
real 14.24
user 13.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909995/ft1_filtered_4FGL_J1028.4-0234_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/909995/ft2_4FGL_J1028.4-0234_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/909995/ltcube_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.fits outfile=/scratch/kocevski/909995/expmap_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.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/909995/ltcube_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.fits
.....................!
real 190.27
user 185.81
sys 3.95

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/909995/ft1_filtered_4FGL_J1028.4-0234_daily_bin975.fits scfile=/scratch/kocevski/909995/ft2_4FGL_J1028.4-0234_daily_bin975.fits outfile=/scratch/kocevski/909995/cmap_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/909995/ft1_filtered_4FGL_J1028.4-0234_daily_bin975.fits scfile=/scratch/kocevski/909995/ft2_4FGL_J1028.4-0234_daily_bin975.fits outfile=/scratch/kocevski/909995/cmap_HighResolution_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/909995/ft1_filtered_4FGL_J1028.4-0234_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/909995/ft2_4FGL_J1028.4-0234_daily_bin975.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/909995/Model_4FGL_J1028.4-0234_daily_bin975.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/909995/ft1_filtered_4FGL_J1028.4-0234_daily_bin975.fits....................!
real 77.01
user 75.66
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2642       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.474       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .21611E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    122.46       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9863       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9359       1.0000         .10000E-03   10000.    
    16 'norm      '    10.430       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0287       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3825       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84816       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=   8190.283     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1902 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2642        .70234        .24828E-07   -.10705E-03
   2  norm          1.0099        .91333        .52018E-08    .71719E-04
   3  Prefactor     3.2394        13.021        .13883E-05    .54403E-04
   4  Prefactor     27.464        29.538       -.13875E-05   -.20143E-03
   5  Prefactor     .10000E-03    7.6659       -.39462E-07** at limit **
   6  norm          .10000E-03    69.516        .16361E-05** at limit **
   7  Prefactor     .10000E-03    6.1156        .69515E-06** at limit **
   8  Prefactor     122.46        88.809       -.15899E-05    .47120E-04
   9  Prefactor     40.275        55.916        .51893E-05    .26224E-03
  10  Prefactor     .10000E-03    17.026        .12044E-05** at limit **
  11  norm          2.8917        1.4707        .85970E-08   -.13203E-03
  12  Prefactor     .10000E-03    4.6968       -.43113E-07** at limit **
  13  Prefactor     7.9863        5.5006        .18320E-05   -.94751E-03
  14  Prefactor     .10000E-03    10.331       -.53219E-06** at limit **
  15  norm          1.9359        1.0740       -.21351E-07   -.85982E-04
  16  norm          10.430        6.9516        .71330E-07   -.17505E-04
  17  Prefactor     3.0284        27.070        .36992E-06   -.26375E-04
  18  Normalizat    1.3825        .19165       -.75816E-06   -.14179E-04
  19  Prefactor     .84816        .13230       -.34391E-09   -.77522E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2642
  norm       = 1.00992
  Prefactor  = 3.23938
  Prefactor  = 27.4641
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 122.456
  Prefactor  = 40.2751
  Prefactor  = 0.000100001
  norm       = 2.89165
  Prefactor  = 0.0001
  Prefactor  = 7.98629
  Prefactor  = 0.0001
  norm       = 1.93592
  norm       = 10.4303
  Prefactor  = 3.02835
  Normalizat = 1.38253
  Prefactor  = 0.848158
 **********
 **   18 **HESSE 
 **********

 FCN=   8190.283     FROM HESSE     STATUS=OK           270 CALLS     2172 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2642        .70177        .40429E-04   -1.5407    
   2  norm          1.0099        .95707        .79954E-03   -1.5507    
   3  Prefactor     3.2394        12.895        .22482E-03   -1.5348    
   4  Prefactor     27.464        30.035        .76431E-04   -1.4659    
   5  Prefactor     .10000E-03    7.6735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    71.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     122.46        88.920        .36369E-04   -1.3490    
   9  Prefactor     40.275        59.282        .63180E-04   -1.4438    
  10  Prefactor     .10000E-03    16.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8917        1.4679        .75125E-04   -1.5368    
  12  Prefactor     .10000E-03    4.8161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9863        5.7496        .70940E-03   -1.5143    
  14  Prefactor     .10000E-03    10.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9359        1.1011        .49583E-04   -1.5430    
  16  norm          10.430        6.9566        .12406E-03   -1.5062    
  17  Prefactor     3.0284        28.532        .23317E-03   -1.5360    
  18  Normalizat    1.3825        .22517        .27478E-03   -.81135    
  19  Prefactor     .84816        .15506        .24523E-03   -.97977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27576e-09
Minuit parameter uncertainties:
  1  0.701774
  2  0.957082
  3  12.9065
  4  30.0517
  5  7.768e-06
  6  0.000564212
  7  6.71406e-05
  8  89.0174
  9  59.3694
  10  0.000226045
  11  1.46793
  12  9.48837e-06
  13  5.75
  14  7.04183e-05
  15  1.10106
  16  6.95719
  17  18.6023
  18  0.225331
  19  0.155145
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  9.488e-06  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:  8.482e-01  1.551e-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.383e+00  2.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 157.121 -2.583
Photon Flux Upper Limit: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/909995/likelihoodResults_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.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): 102
logL (Free Index) = 8190.28426634
delta logL = -0.000990579470454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8190.28327569
delta logL = 6.92216417519e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6305       1.0000          .0000       10.000    
     3 'Normalizat'    1.3825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84820       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=   8190.283     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1196        .90712E-02** at limit **
   2  Index         2.6478        6.3211        .50000       -.32259E-04
   3  Normalizat    1.3825        .18217        .62126E-01    .70005E-05
   4  Prefactor     .84816        .13169        .44341E-01    .12864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.64778
  Normalizat = 1.38253
  Prefactor  = 0.848159
 **********
 **   18 **HESSE 
 **********

 FCN=   8190.283     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6478        6.3179        .50000       -.48979    
   3  Normalizat    1.3825        .21219        .27478E-03   -.81135    
   4  Prefactor     .84816        .15349        .24523E-03   -.97977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10095e-09
Minuit parameter uncertainties:
  1  2.74701e-05
  2  4.46445
  3  0.212326
  4  0.15357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909995': 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) = 8190.28327551
delta logL = 2.50877747021e-07

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  2.747e-05  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.648e+00  4.464e+00  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:  8.482e-01  1.536e-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.383e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 157.121 -2.583

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/909995/cmap_HighResolution_492048001_492307201_4FGL_J1028.4-0234_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-01 23:48:43.658013', job_id='909995', GAL2='0.85', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630565323.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='975' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:48:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 909995: <4FGL_J1028.4-0234_daily_bin975> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin975> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 23:35:29 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:35:32 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:35:32 2021
Terminated at Wed Sep  1 23:48:44 2021
Results reported at Wed Sep  1 23:48:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin975 157.121 -2.5829 492048001 492307201 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 :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            795 sec.

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

