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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin345
RA = 157.121, Dec = -2.5829
tmin = 328752001, tmax = 329011201
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='906016', job_status='RUN', time_executed='2021-09-01 23:26:54.623495', time_epoch_executed='1630564014.62' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906016/ft1_4FGL_J1028.4-0234_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906016/ft2_4FGL_J1028.4-0234_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906016/ft1_4FGL_J1028.4-0234_daily_bin345.fits outfile=/scratch/kocevski/906016/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin345.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=328752001.0 tmax=329011201.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 2.95
user 2.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906016/ft1_filtered_4FGL_J1028.4-0234_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/906016/ft2_4FGL_J1028.4-0234_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/906016/ltcube_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.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/906016/ft2_4FGL_J1028.4-0234_daily_bin345.fits
.....................!
real 15.23
user 14.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906016/ft1_filtered_4FGL_J1028.4-0234_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/906016/ft2_4FGL_J1028.4-0234_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/906016/ltcube_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.fits outfile=/scratch/kocevski/906016/expmap_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.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/906016/ltcube_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.fits
.....................!
real 157.20
user 152.30
sys 4.53

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/906016/ft1_filtered_4FGL_J1028.4-0234_daily_bin345.fits scfile=/scratch/kocevski/906016/ft2_4FGL_J1028.4-0234_daily_bin345.fits outfile=/scratch/kocevski/906016/cmap_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906016/ft1_filtered_4FGL_J1028.4-0234_daily_bin345.fits scfile=/scratch/kocevski/906016/ft2_4FGL_J1028.4-0234_daily_bin345.fits outfile=/scratch/kocevski/906016/cmap_HighResolution_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.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.49
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7112       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.171       1.0000         .10000E-03   10000.    
     6 'norm      '    36.599       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13747E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15391E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.859       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4460       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11375E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.049       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5460       1.0000         .10000E-03   10000.    
    16 'norm      '    12.160       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2728       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .72331       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=   5259.382     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     2270 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7118        .83768        .44479E-04    .17738E-03
   2  norm          2.0171        2.0520        .10197E-03   -.22745E-04
   3  Prefactor     10.132        18.283        .12592E-03   -.65908E-05
   4  Prefactor     .12322        63.128        .13817        .51232E-04
   5  Prefactor     38.310        48.804        .64872E-04    .16824E-04
   6  norm          36.614        26.996        .66247E-04   -.75097E-04
   7  Prefactor     .10000E-03    11.172        .18142E-02** at limit **
   8  Prefactor     .10000E-03    54.989        .18142E-02** at limit **
   9  Prefactor     .10000E-03    67.255        .18142E-02** at limit **
  10  Prefactor     10.883        15.682        .12158E-03   -.49373E-04
  11  norm          1.4467        1.3275        .76949E-04    .82589E-04
  12  Prefactor     .10000E-03    5.3206        .16252E-02** at limit **
  13  Prefactor     .10003E-03    12.479        .19074E-02** at limit **
  14  Prefactor     30.049        11.340        .73090E-04   -.71550E-05
  15  norm          2.5462        .76736        .33403E-04   -.91553E-04
  16  norm          12.162        8.5839        .11488E-03   -.95006E-05
  17  Prefactor     .10000E-03    5.2854        .16199E-02** at limit **
  18  Normalizat    1.2724        .26504        .26733E-03    .54264E-04
  19  Prefactor     .72352        .18543        .25124E-03    .76608E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71176
  norm       = 2.01706
  Prefactor  = 10.1318
  Prefactor  = 0.12322
  Prefactor  = 38.3101
  norm       = 36.6137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8835
  norm       = 1.4467
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 30.049
  norm       = 2.54619
  norm       = 12.1616
  Prefactor  = 0.0001
  Normalizat = 1.27241
  Prefactor  = 0.723524
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.382     FROM HESSE     STATUS=OK           258 CALLS     2528 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7118        .83769        .17792E-05   -1.5446    
   2  norm          2.0171        2.0520        .40786E-05   -1.5424    
   3  Prefactor     10.132        18.284        .50368E-05   -1.5071    
   4  Prefactor     .12322        62.011        .13969       -1.5638    
   5  Prefactor     38.310        48.793        .25949E-05   -1.4469    
   6  norm          36.614        26.995        .13249E-04   -1.4497    
   7  Prefactor     .10000E-03    11.177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    67.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.883        15.681        .48631E-05   -1.5048    
  11  norm          1.4467        1.3275        .30779E-05   -1.5467    
  12  Prefactor     .10000E-03    5.3221        .32504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    12.577        .38149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.049        11.338        .29236E-05   -1.4611    
  15  norm          2.5462        .76733        .13361E-05   -1.5389    
  16  norm          12.162        8.5838        .45950E-05   -1.5010    
  17  Prefactor     .10000E-03    5.2867        .32399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2724        .26525        .10693E-04   -.84394    
  19  Prefactor     .72352        .18559        .10050E-04   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11232e-09
Minuit parameter uncertainties:
  1  0.837693
  2  2.05206
  3  18.294
  4  5.53198
  5  48.8441
  6  27.0038
  7  3.36358e-06
  8  4.26946e-05
  9  1.00196e-05
  10  15.6867
  11  1.3275
  12  1.24099e-05
  13  0.00113505
  14  11.3389
  15  0.767337
  16  8.5847
  17  1.59511e-05
  18  0.265536
  19  0.185752
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.241e-05  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:  7.235e-01  1.858e-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.272e+00  2.655e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906016/likelihoodResults_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.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) = 5259.38263912
delta logL = -0.000895236923498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5259.38174398
delta logL = -9.01491148397e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6145       1.0000          .0000       10.000    
     3 'Normalizat'    1.2724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72357       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=   5259.382     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    487.32        .16253E-02** at limit **
   2  Index         2.6267        5.2529        .50000       -.13298E-05
   3  Normalizat    1.2724        .60993E-01    .26732E-03    .44654E-05
   4  Prefactor     .72352        .44754E-01    .25124E-03    .48870E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.62667
  Normalizat = 1.27241
  Prefactor  = 0.723524
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.382     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    14.523        .32506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6267        5.2879        .50000       -.49458    
   3  Normalizat    1.2724        .25097        .10693E-04   -.84394    
   4  Prefactor     .72352        .18416        .10050E-04   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67228e-09
Minuit parameter uncertainties:
  1  0.00100928
  2  314.194
  3  0.251207
  4  0.184312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906016': 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) = 5259.38174388
delta logL = 2.89128365694e-09

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.009e-03  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.627e+00  3.142e+02  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.235e-01  1.843e-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.272e+00  2.512e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/906016/cmap_HighResolution_328752001_329011201_4FGL_J1028.4-0234_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-01 23:34:34.255133', job_id='906016', GAL2='0.72', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630564474.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.89e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='345' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:34:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 906016: <4FGL_J1028.4-0234_daily_bin345> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin345> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 23:20:42 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:24:05 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:24:05 2021
Terminated at Wed Sep  1 23:34:35 2021
Results reported at Wed Sep  1 23:34:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin345 157.121 -2.5829 328752001 329011201 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 :                                   458.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            833 sec.

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

