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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin443
RA = 157.121, Dec = -2.5829
tmin = 354153601, tmax = 354412801
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='907196', job_status='RUN', time_executed='2021-09-01 23:29:13.687158', time_epoch_executed='1630564153.69' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907196/ft1_4FGL_J1028.4-0234_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907196/ft2_4FGL_J1028.4-0234_daily_bin443.fits


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

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

Done.
real 4.01
user 3.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907196/ft1_filtered_4FGL_J1028.4-0234_daily_bin443.fits" evtable="EVENTS" scfile=/scratch/kocevski/907196/ft2_4FGL_J1028.4-0234_daily_bin443.fits sctable="SC_DATA" outfile=/scratch/kocevski/907196/ltcube_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.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/907196/ft2_4FGL_J1028.4-0234_daily_bin443.fits
.....................!
real 16.25
user 15.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907196/ft1_filtered_4FGL_J1028.4-0234_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/907196/ft2_4FGL_J1028.4-0234_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/907196/ltcube_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.fits outfile=/scratch/kocevski/907196/expmap_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.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/907196/ltcube_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.fits
.....................!
real 192.85
user 187.25
sys 5.11

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/907196/ft1_filtered_4FGL_J1028.4-0234_daily_bin443.fits scfile=/scratch/kocevski/907196/ft2_4FGL_J1028.4-0234_daily_bin443.fits outfile=/scratch/kocevski/907196/cmap_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907196/ft1_filtered_4FGL_J1028.4-0234_daily_bin443.fits scfile=/scratch/kocevski/907196/ft2_4FGL_J1028.4-0234_daily_bin443.fits outfile=/scratch/kocevski/907196/cmap_HighResolution_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907196/ft1_filtered_4FGL_J1028.4-0234_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/907196/ft2_4FGL_J1028.4-0234_daily_bin443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907196/Model_4FGL_J1028.4-0234_daily_bin443.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/907196/ft1_filtered_4FGL_J1028.4-0234_daily_bin443.fits.....................!
real 65.22
user 63.68
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0642       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4924       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2123       1.0000         .10000E-03   10000.    
     6 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    116.56       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.583       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1987       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0301       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1287       1.0000         .10000E-03   10000.    
    16 'norm      '    11.685       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1405       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97056       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=   6463.864     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1925 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0642        .76008        .15936E-06   -.49825E-03
   2  norm          3.4923        1.8480       -.68134E-07   -.10469E-03
   3  Prefactor     .10000E-03    10.726        .36962E-05** at limit **
   4  Prefactor     .10000E-03    19.246        .21327E-04** at limit **
   5  Prefactor     3.2309        63.585        .58208E-04   -.22807E-04
   6  norm          .10000E-03    15.400       -.18394E-04** at limit **
   7  Prefactor     .10000E-03    6.4100       -.11994E-06** at limit **
   8  Prefactor     116.57        71.906        .84631E-05    .73275E-04
   9  Prefactor     .10000E-03    35.447       -.75274E-05** at limit **
  10  Prefactor     19.585        16.734        .10689E-05    .70884E-04
  11  norm          .10000E-03    .46124        .16169E-07** at limit **
  12  Prefactor     .10000E-03    2.4980       -.49654E-07** at limit **
  13  Prefactor     4.1990        3.1164        .21702E-07   -.56695E-04
  14  Prefactor     1.0302        1.4397        .38949E-06   -.21070E-02
  15  norm          1.1287        .56317        .10473E-06   -.51810E-04
  16  norm          11.685        7.7276        .21229E-06   -.15709E-04
  17  Prefactor     .10000E-03    4.3268        .24477E-06** at limit **
  18  Normalizat    1.1402        .20473       -.54625E-05    .97685E-05
  19  Prefactor     .97074        .14811        .86454E-06   -.38316E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06416
  norm       = 3.49231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.23088
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 116.569
  Prefactor  = 0.0001
  Prefactor  = 19.5849
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19897
  Prefactor  = 1.03018
  norm       = 1.12869
  norm       = 11.685
  Prefactor  = 0.0001
  Normalizat = 1.14023
  Prefactor  = 0.970741
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.864     FROM HESSE     STATUS=OK           266 CALLS     2191 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0642        .73983        .56051E-04   -1.5502    
   2  norm          3.4923        1.8487        .77348E-04   -1.5334    
   3  Prefactor     .10000E-03    10.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2309        63.158        .22604E-03   -1.5348    
   6  norm          .10000E-03    15.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     116.57        72.354        .37268E-04   -1.3544    
   9  Prefactor     .10000E-03    35.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.585        16.723        .90509E-04   -1.4823    
  11  norm          .10000E-03    .69908        .10601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5185        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1990        3.1326        .11790E-03   -1.5298    
  14  Prefactor     1.0302        10.097        .23842E-02   -1.5505    
  15  norm          1.1287        .56627        .40908E-04   -1.5495    
  16  norm          11.685        7.7290        .11719E-03   -1.5024    
  17  Prefactor     .10000E-03    4.3445        .16320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1402        .24378        .27905E-03   -.88471    
  19  Prefactor     .97074        .17630        .22619E-03   -.93711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79271e-08
Minuit parameter uncertainties:
  1  0.73984
  2  1.8487
  3  9.49811e-06
  4  0.000182088
  5  28.604
  6  3.13698e-05
  7  3.6004e-05
  8  72.4091
  9  0.000147981
  10  16.7269
  11  2.74422e-06
  12  5.83132e-06
  13  3.13273
  14  6.45138
  15  0.566269
  16  7.72961
  17  1.00231e-05
  18  0.244022
  19  0.176406
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  5.831e-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.707e-01  1.764e-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.140e+00  2.440e-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: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907196/likelihoodResults_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.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) = 6463.86618057
delta logL = -0.00188777553012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6463.86429319
delta logL = -4.04012098443e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5912       1.0000          .0000       10.000    
     3 'Normalizat'    1.1403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97074       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=   6463.864     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      255 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.016        .12667E-01** at limit **
   2  Index         1.9413        6.5744        .50000       -.26926E-06
   3  Normalizat    1.1402        .13809E-01    .27906E-03    .41948E-03
   4  Prefactor     .97075        .10479E-01    .22619E-03    .56645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94131
  Normalizat = 1.14022
  Prefactor  = 0.970746
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.864     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    732.25        .29907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9413        8.6436        .50000       -.65826    
   3  Normalizat    1.1402        .11290        .55811E-04   -.88471    
   4  Prefactor     .97075        .85676E-01    .45238E-04   -.93711    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7038e-08
Minuit parameter uncertainties:
  1  0.000675192
  2  1082.44
  3  0.112923
  4  0.0856878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907196': 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) = 6463.86428629
delta logL = 6.49495723337e-06

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  6.752e-04  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  1.941e+00  1.082e+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.707e-01  8.569e-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.140e+00  1.129e-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/907196/cmap_HighResolution_354153601_354412801_4FGL_J1028.4-0234_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-01 23:39:04.639342', job_id='907196', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630564744.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='443' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:39:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 907196: <4FGL_J1028.4-0234_daily_bin443> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin443> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:25:14 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:25:30 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:25:30 2021
Terminated at Wed Sep  1 23:39:05 2021
Results reported at Wed Sep  1 23:39:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin443 157.121 -2.5829 354153601 354412801 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 :                                   589.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            831 sec.

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

