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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin1013
RA = 157.121, Dec = -2.5829
tmin = 501897601, tmax = 502156801
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='910057', job_status='RUN', time_executed='2021-09-01 23:39:24.805407', time_epoch_executed='1630564764.81' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910057/ft1_4FGL_J1028.4-0234_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910057/ft1_4FGL_J1028.4-0234_daily_bin1013.fits outfile=/scratch/kocevski/910057/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin1013.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=501897601.0 tmax=502156801.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.54
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.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/910057/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/910057/ft1_filtered_4FGL_J1028.4-0234_daily_bin1013.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.54
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910057/ft1_filtered_4FGL_J1028.4-0234_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/910057/ltcube_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.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/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.fits
.....................!
real 18.74
user 18.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910057/ft1_filtered_4FGL_J1028.4-0234_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/910057/ltcube_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.fits outfile=/scratch/kocevski/910057/expmap_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.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/910057/ltcube_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.fits
.....................!
real 191.93
user 186.52
sys 4.88

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/910057/ft1_filtered_4FGL_J1028.4-0234_daily_bin1013.fits scfile=/scratch/kocevski/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.fits outfile=/scratch/kocevski/910057/cmap_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910057/ft1_filtered_4FGL_J1028.4-0234_daily_bin1013.fits scfile=/scratch/kocevski/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.fits outfile=/scratch/kocevski/910057/cmap_HighResolution_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.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/910057/ft1_filtered_4FGL_J1028.4-0234_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/910057/ft2_4FGL_J1028.4-0234_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910057/Model_4FGL_J1028.4-0234_daily_bin1013.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/910057/ft1_filtered_4FGL_J1028.4-0234_daily_bin1013.fits.....................!
real 66.17
user 63.89
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31660       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.311       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.671       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4427       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5858       1.0000         .10000E-03   10000.    
    15 'norm      '    .95702       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.172       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3404       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96932       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=   6509.367     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1862 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31654        .58186       -.61660E-07   -.55645E-04
   2  norm          1.8517        1.7966       -.32736E-07    .94128E-05
   3  Prefactor     1.2686        29.855        .43739E-05   -.14953E-05
   4  Prefactor     .10000E-03    30.400       -.18896E-06** at limit **
   5  Prefactor     .10000E-03    14.563        .41863E-06** at limit **
   6  norm          21.295        17.440       -.82743E-06   -.59505E-04
   7  Prefactor     .10000E-03    9.9474        .24747E-05** at limit **
   8  Prefactor     29.780        60.188       -.41897E-05   -.37302E-04
   9  Prefactor     15.668        43.721        .48572E-06   -.55352E-04
  10  Prefactor     .10000E-03    13.749        .11133E-05** at limit **
  11  norm          5.4429        2.0110        .35664E-07   -.20400E-04
  12  Prefactor     .10000E-03    2.8588       -.14057E-06** at limit **
  13  Prefactor     .10000E-03    1.1180        .10342E-06** at limit **
  14  Prefactor     7.5879        9.0034        .19175E-06   -.68346E-06
  15  norm          .95689        .91856       -.97426E-07   -.19492E-03
  16  norm          4.5903        4.9951       -.10061E-06   -.72956E-05
  17  Prefactor     11.176        15.157        .42790E-06   -.24455E-05
  18  Normalizat    1.3401        .23504       -.19638E-05    .67133E-04
  19  Prefactor     .96949        .17269        .18522E-05   -.11391E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.316544
  norm       = 1.85168
  Prefactor  = 1.26862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.2951
  Prefactor  = 0.0001
  Prefactor  = 29.7798
  Prefactor  = 15.6681
  Prefactor  = 0.0001
  norm       = 5.44286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5879
  norm       = 0.956887
  norm       = 4.59029
  Prefactor  = 11.1757
  Normalizat = 1.34011
  Prefactor  = 0.969489
 **********
 **   18 **HESSE 
 **********

 FCN=   6509.367     FROM HESSE     STATUS=OK           272 CALLS     2134 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31654        .56849        .79015E-04   -1.5595    
   2  norm          1.8517        1.7888        .10333E-03   -1.5436    
   3  Prefactor     1.2686        30.176        .19837E-02   -1.5483    
   4  Prefactor     .10000E-03    30.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.295        17.550        .86765E-04   -1.4785    
   7  Prefactor     .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.780        60.590        .73351E-04   -1.4616    
   9  Prefactor     15.668        43.212        .10117E-03   -1.4916    
  10  Prefactor     .10000E-03    13.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4429        2.0106        .66105E-04   -1.5241    
  12  Prefactor     .10000E-03    2.8794        .13318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1280        .83269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5879        9.0008        .14560E-03   -1.5157    
  15  norm          .95689        .87235        .54768E-03   -1.5512    
  16  norm          4.5903        4.9974        .18342E-03   -1.5279    
  17  Prefactor     11.176        14.853        .11986E-03   -1.5039    
  18  Normalizat    1.3401        .26468        .27662E-03   -.82377    
  19  Prefactor     .96949        .19296        .24360E-03   -.93754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32323e-09
Minuit parameter uncertainties:
  1  0.568498
  2  1.78883
  3  12.3809
  4  2.07778e-06
  5  3.85418e-06
  6  17.5538
  7  6.38078e-05
  8  60.7159
  9  43.2983
  10  4.34553e-05
  11  2.01061
  12  1.23774e-06
  13  1.29291e-06
  14  9.00242
  15  0.872357
  16  4.99789
  17  14.8581
  18  0.264945
  19  0.193099
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.238e-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:  9.695e-01  1.931e-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.340e+00  2.649e-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/910057/likelihoodResults_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.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) = 6509.368447
delta logL = -0.00165061578355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6509.36679639
delta logL = -9.90712578641e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6056       1.0000          .0000       10.000    
     3 'Normalizat'    1.3401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96951       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6509.367     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    84.853        .13352E-02** at limit **
   2  Index         2.5516        5.4963        .50000        .18353E-04
   3  Normalizat    1.3401        .29569E-01    .27661E-03   -.43524E-04
   4  Prefactor     .96949        .22711E-01    .24360E-03   -.33882E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100581
  Index      = 2.55163
  Normalizat = 1.3401
  Prefactor  = 0.969491
 **********
 **   18 **HESSE 
 **********

 FCN=   6509.367     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10058E-03    321.26        .26704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5516        7.9845        .50000       -.51172    
   3  Normalizat    1.3401        .65497E-01    .11065E-04   -.82377    
   4  Prefactor     .96949        .50303E-01    .97440E-05   -.93753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.48862e-08
Minuit parameter uncertainties:
  1  0.027481
  2  1090.03
  3  0.0655014
  4  0.0503055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910057': 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) = 6509.36679618
delta logL = 2.04142452276e-07

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.006e-04  2.748e-02  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.552e+00  1.090e+03  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:  9.695e-01  5.031e-02  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.340e+00  6.550e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/910057/cmap_HighResolution_501897601_502156801_4FGL_J1028.4-0234_daily_bin1013.png

Cleaning up...

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

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:49:18.784239', job_id='910057', GAL2='0.97', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630565358.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1013' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 910057: <4FGL_J1028.4-0234_daily_bin1013> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin1013 157.121 -2.5829 501897601 502156801 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 :                                   591.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            824 sec.

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

