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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin770
RA = 157.121, Dec = -2.5829
tmin = 438912001, tmax = 439171201
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='908569', job_status='RUN', time_executed='2021-09-01 23:34:50.188812', time_epoch_executed='1630564490.19' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908569/ft1_4FGL_J1028.4-0234_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908569/ft2_4FGL_J1028.4-0234_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908569/ft1_4FGL_J1028.4-0234_daily_bin770.fits outfile=/scratch/kocevski/908569/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin770.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.25
user 5.90
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908569/ft1_filtered_4FGL_J1028.4-0234_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/908569/ft2_4FGL_J1028.4-0234_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/908569/ltcube_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.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/908569/ft2_4FGL_J1028.4-0234_daily_bin770.fits
.....................!
real 18.79
user 18.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908569/ft1_filtered_4FGL_J1028.4-0234_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/908569/ft2_4FGL_J1028.4-0234_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/908569/ltcube_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.fits outfile=/scratch/kocevski/908569/expmap_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.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/908569/ltcube_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.fits
.....................!
real 191.53
user 186.27
sys 4.80

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/908569/ft1_filtered_4FGL_J1028.4-0234_daily_bin770.fits scfile=/scratch/kocevski/908569/ft2_4FGL_J1028.4-0234_daily_bin770.fits outfile=/scratch/kocevski/908569/cmap_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908569/ft1_filtered_4FGL_J1028.4-0234_daily_bin770.fits scfile=/scratch/kocevski/908569/ft2_4FGL_J1028.4-0234_daily_bin770.fits outfile=/scratch/kocevski/908569/cmap_HighResolution_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.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.60
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908569/ft1_filtered_4FGL_J1028.4-0234_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/908569/ft2_4FGL_J1028.4-0234_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908569/Model_4FGL_J1028.4-0234_daily_bin770.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/908569/ft1_filtered_4FGL_J1028.4-0234_daily_bin770.fits.....................!
real 39.63
user 38.40
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57078E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9022       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    86.246       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    79.049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5996       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2439       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5043       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4463       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0374       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .58454       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2214       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=   3464.109     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1885 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58815E-01    .65985       -.49513E-06    .37516E-03
   2  norm          2.9023        2.3584       -.88362E-07   -.25812E-04
   3  Prefactor     .10000E-03    7.2830        .35321E-06** at limit **
   4  Prefactor     86.241        79.811       -.52583E-05    .92084E-04
   5  Prefactor     .10000E-03    31.576        .12582E-05** at limit **
   6  norm          .10000E-03    8.8649       -.58001E-06** at limit **
   7  Prefactor     5.4399        9.9606        .22801E-05   -.20463E-04
   8  Prefactor     79.024        79.898       -.25162E-04    .81545E-05
   9  Prefactor     .10000E-03    42.832       -.24370E-06** at limit **
  10  Prefactor     .10000E-03    11.000        .21312E-05** at limit **
  11  norm          4.5983        2.4673        .58701E-07    .26285E-03
  12  Prefactor     .93378        7.4664       -.11380E-05   -.48356E-04
  13  Prefactor     8.2465        5.4965       -.13402E-05    .11529E-04
  14  Prefactor     4.4935        12.412       -.11207E-05   -.84503E-04
  15  norm          2.4463        1.0231       -.10892E-06    .31123E-03
  16  norm          7.0378        7.2922       -.49779E-07    .50605E-04
  17  Prefactor     .10000E-03    12.389       -.13445E-05** at limit **
  18  Normalizat    .58412        .30051        .11260E-04    .11337E-03
  19  Prefactor     1.2217        .21047       -.20423E-05    .37292E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0588155
  norm       = 2.90231
  Prefactor  = 0.0001
  Prefactor  = 86.2413
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.43987
  Prefactor  = 79.0242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.59826
  Prefactor  = 0.933783
  Prefactor  = 8.2465
  Prefactor  = 4.49353
  norm       = 2.44626
  norm       = 7.03777
  Prefactor  = 0.0001
  Normalizat = 0.584122
  Prefactor  = 1.22168
 **********
 **   18 **HESSE 
 **********

 FCN=   3464.109     FROM HESSE     STATUS=OK           272 CALLS     2157 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58815E-01    4.1523        .86666E-03   -1.5660    
   2  norm          2.9023        2.3589        .79235E-04   -1.5367    
   3  Prefactor     .10000E-03    7.2967        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     86.241        79.112        .43259E-04   -1.3848    
   5  Prefactor     .10000E-03    31.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.8630        .17111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4399        9.9256        .17225E-03   -1.5241    
   8  Prefactor     79.024        79.906        .45169E-04   -1.3928    
   9  Prefactor     .10000E-03    42.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5983        2.4630        .63725E-04   -1.5279    
  12  Prefactor     .93378        24.081        .28929E-02   -1.5515    
  13  Prefactor     8.2465        5.4968        .10600E-03   -1.5134    
  14  Prefactor     4.4935        12.384        .18970E-03   -1.5284    
  15  norm          2.4463        1.0215        .35967E-04   -1.5395    
  16  norm          7.0378        7.2946        .15122E-03   -1.5177    
  17  Prefactor     .10000E-03    12.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .58412        .32730        .36062E-03   -1.0866    
  19  Prefactor     1.2217        .23214        .20082E-03   -.85667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41336e-09
Minuit parameter uncertainties:
  1  0.987599
  2  2.35896
  3  2.89309e-05
  4  79.209
  5  1.12354e-05
  6  4.55138e-05
  7  9.92864
  8  80.015
  9  0.000234374
  10  5.82942e-05
  11  2.46309
  12  9.48769
  13  5.49718
  14  12.3913
  15  1.02151
  16  7.2955
  17  1.26365e-05
  18  0.328392
  19  0.232334
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  9.338e-01  9.488e+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.222e+00  2.323e-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.841e-01  3.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/908569/likelihoodResults_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.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) = 3464.05972755
delta logL = 0.049549215194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3464.05726489
delta logL = 0.0520118752856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81131       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7868       1.0000          .0000       10.000    
     3 'Normalizat'    .56294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2307       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=   3464.057     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      231 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80582        45.988        .12482E-01    .10231E-03
   2  Index         3.7903        3.6668        .34724       -.24686E-04
   3  Normalizat    .56296        .34788E-01    .82837E-01   -.67363E-06
   4  Prefactor     1.2306        .27319E-01    .33942E-01   -.53701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.805824
  Index      = 3.79032
  Normalizat = 0.562957
  Prefactor  = 1.23063
 **********
 **   18 **HESSE 
 **********

 FCN=   3464.057     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      262 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80582        355.77        .15050E-03   -1.5528    
   2  Index         3.7903        6.0290        .95010E-02   -.24436    
   3  Normalizat    .56296        .31030        .36690E-03   -1.0958    
   4  Prefactor     1.2306        .25226        .20015E-03   -.85394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24431e-10
Minuit parameter uncertainties:
  1  34.0669
  2  28.4701
  3  0.311267
  4  0.25251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908569': 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): 102
logL (Free Index) = 3464.05726417
delta logL = 0.0520125974504

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  8.058e-01  3.407e+01  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  3.790e+00  2.847e+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.231e+00  2.525e-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.630e-01  3.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/908569/cmap_HighResolution_438912001_439171201_4FGL_J1028.4-0234_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.67e-07', time_completed='2021-09-01 23:42:43.588654', job_id='908569', GAL2='1.23', fit_tolerance='1e-08', EG2='0.56', EG='0.58', time_epoch_completed='1630564963.59', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.20e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='770' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:42:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 908569: <4FGL_J1028.4-0234_daily_bin770> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin770 157.121 -2.5829 438912001 439171201 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 :                                   471.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             232.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            741 sec.

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

