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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin131
RA = 157.121, Dec = -2.5829
tmin = 273283201, tmax = 273542401
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='904651', job_status='RUN', time_executed='2021-09-01 23:21:11.565394', time_epoch_executed='1630563671.57' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904651/ft1_4FGL_J1028.4-0234_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904651/ft2_4FGL_J1028.4-0234_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904651/ft1_4FGL_J1028.4-0234_daily_bin131.fits outfile=/scratch/kocevski/904651/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin131.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=273283201.0 tmax=273542401.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 1.74
user 1.56
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904651/ft2_4FGL_J1028.4-0234_daily_bin131.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/904651/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin131.fits evtable="EVENTS" outfile="/scratch/kocevski/904651/ft1_filtered_4FGL_J1028.4-0234_daily_bin131.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904651/ft1_filtered_4FGL_J1028.4-0234_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/904651/ft2_4FGL_J1028.4-0234_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/904651/ltcube_273283201_273542401_4FGL_J1028.4-0234_daily_bin131.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/904651/ft2_4FGL_J1028.4-0234_daily_bin131.fits
.....................!
real 19.61
user 19.12
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904651/ft1_filtered_4FGL_J1028.4-0234_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/904651/ft2_4FGL_J1028.4-0234_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/904651/ltcube_273283201_273542401_4FGL_J1028.4-0234_daily_bin131.fits outfile=/scratch/kocevski/904651/expmap_273283201_273542401_4FGL_J1028.4-0234_daily_bin131.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/904651/ltcube_273283201_273542401_4FGL_J1028.4-0234_daily_bin131.fits
.....................!
real 193.82
user 187.72
sys 5.52

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/904651/ft1_filtered_4FGL_J1028.4-0234_daily_bin131.fits scfile=/scratch/kocevski/904651/ft2_4FGL_J1028.4-0234_daily_bin131.fits outfile=/scratch/kocevski/904651/cmap_273283201_273542401_4FGL_J1028.4-0234_daily_bin131.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904651/ft1_filtered_4FGL_J1028.4-0234_daily_bin131.fits scfile=/scratch/kocevski/904651/ft2_4FGL_J1028.4-0234_daily_bin131.fits outfile=/scratch/kocevski/904651/cmap_HighResolution_273283201_273542401_4FGL_J1028.4-0234_daily_bin131.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.58
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904651/ft1_filtered_4FGL_J1028.4-0234_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/904651/ft2_4FGL_J1028.4-0234_daily_bin131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904651/Model_4FGL_J1028.4-0234_daily_bin131.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/904651/ft1_filtered_4FGL_J1028.4-0234_daily_bin131.fits....................!
real 70.18
user 68.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30855       1.0000         .10000E-03   10000.    
     2 'norm      '    .98797       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.041       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.654       1.0000         .10000E-03   10000.    
     6 'norm      '    17.274       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.194       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1389       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8337       1.0000         .10000E-03   10000.    
    15 'norm      '    .36230       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4739       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0163       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3512       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=   7753.695     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1895 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30861        .40255        .10462E-01    .14884E-02
   2  norm          .98832        1.8476        .32626E-01    .12369E-02
   3  Prefactor     23.041        14.576        .20862E-02   -.83508E-03
   4  Prefactor     .10000E-03    13.353        .90712E-02** at limit **
   5  Prefactor     20.654        32.532        .22033E-02    .49786E-03
   6  norm          17.274        15.769        .24091E-02   -.39936E-03
   7  Prefactor     38.190        15.022        .16213E-02    .16919E-02
   8  Prefactor     29.601        61.982        .18410E-02    .12771E-04
   9  Prefactor     .10000E-03    25.348        .90712E-02** at limit **
  10  Prefactor     .10000E-03    6.3841        .90712E-02** at limit **
  11  norm          .10000E-03    .74291        .25968E-01** at limit **
  12  Prefactor     .97283        7.6500        .13068E-01    .17357E-02
  13  Prefactor     7.1392        4.5700        .37533E-02    .16538E-02
  14  Prefactor     6.8329        7.8232        .38370E-02    .73004E-03
  15  norm          .36278        .56850        .10695E-01    .20092E-02
  16  norm          4.7025        5.0163        .46394E-02    .80306E-03
  17  Prefactor     8.4689        8.3410        .34427E-02    .20969E-03
  18  Normalizat    1.0161        .21423        .74520E-01    .28589E-04
  19  Prefactor     1.3513        .15825        .51400E-01    .19336E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.308611
  norm       = 0.98832
  Prefactor  = 23.0412
  Prefactor  = 0.0001
  Prefactor  = 20.654
  norm       = 17.2742
  Prefactor  = 38.19
  Prefactor  = 29.6011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.972835
  Prefactor  = 7.13918
  Prefactor  = 6.83295
  norm       = 0.362775
  norm       = 4.70247
  Prefactor  = 8.46893
  Normalizat = 1.01612
  Prefactor  = 1.35129
 **********
 **   18 **HESSE 
 **********

 FCN=   7753.695     FROM HESSE     STATUS=OK           278 CALLS     2173 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30861        .36893        .61783E-03   -1.5597    
   2  norm          .98832        1.6177        .15799E-02   -1.5509    
   3  Prefactor     23.041        14.575        .83448E-04   -1.4748    
   4  Prefactor     .10000E-03    13.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.654        32.605        .88132E-04   -1.4799    
   6  norm          17.274        15.763        .96365E-04   -1.4876    
   7  Prefactor     38.190        15.021        .64854E-04   -1.4471    
   8  Prefactor     29.601        62.015        .73640E-04   -1.4619    
   9  Prefactor     .10000E-03    25.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5330        .14605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .97283        7.8296        .45300E-02   -1.5511    
  13  Prefactor     7.1392        4.5646        .14031E-03   -1.5174    
  14  Prefactor     6.8329        7.8030        .15348E-03   -1.5185    
  15  norm          .36278        .52464        .66730E-03   -1.5588    
  16  norm          4.7025        5.0183        .18558E-03   -1.5274    
  17  Prefactor     8.4689        8.0870        .13771E-03   -1.5126    
  18  Normalizat    1.0161        .25448        .32977E-03   -.92492    
  19  Prefactor     1.3513        .18953        .22724E-03   -.81794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93519e-09
Minuit parameter uncertainties:
  1  0.368931
  2  1.61775
  3  14.577
  4  3.62806e-06
  5  32.6328
  6  15.7667
  7  15.0229
  8  62.1503
  9  1.64529e-05
  10  3.3819e-06
  11  3.17336e-06
  12  5.52045
  13  4.56483
  14  7.80417
  15  0.524651
  16  5.01879
  17  8.08809
  18  0.25478
  19  0.189631
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  9.728e-01  5.520e+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.351e+00  1.896e-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.016e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 157.121 -2.583
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904651/likelihoodResults_273283201_273542401_4FGL_J1028.4-0234_daily_bin131.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) = 7753.47518828
delta logL = 0.220029700883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7753.46613952
delta logL = 0.229078458106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95979       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8609       1.0000          .0000       10.000    
     3 'Normalizat'    .98098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3665       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=   7753.466     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96852        31.188        .13023E-01    .13428E-02
   2  Index         3.8552        6.8210        .20713        .10546E-03
   3  Normalizat    .98111        .41694E-01    .75710E-01    .55699E-03
   4  Prefactor     1.3663        .32688E-01    .51160E-01   -.36302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.968523
  Index      = 3.8552
  Normalizat = 0.981108
  Prefactor  = 1.36634
 **********
 **   18 **HESSE 
 **********

 FCN=   7753.466     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96852        11.885        .12729E-03   -1.5511    
   2  Index         3.8552        3.8918        .11921E-01   -.23101    
   3  Normalizat    .98111        .24608        .16752E-02   -.93666    
   4  Prefactor     1.3663        .18974        .22617E-03   -.81355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57363e-07
Minuit parameter uncertainties:
  1  6.78676
  2  4.51005
  3  0.246367
  4  0.189841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904651': 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) = 7753.46613432
delta logL = 0.229083661293

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  9.685e-01  6.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  3.855e+00  4.510e+00  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.366e+00  1.898e-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:  9.811e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-01 23:31:45.742086', job_id='904651', GAL2='1.37', fit_tolerance='1e-08', EG2='0.98', EG='1.02', time_epoch_completed='1630564305.74', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.29e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='131' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:31:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 904651: <4FGL_J1028.4-0234_daily_bin131> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin131> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 23:16:07 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:20:55 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:20:55 2021
Terminated at Wed Sep  1 23:31:46 2021
Results reported at Wed Sep  1 23:31:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin131 157.121 -2.5829 273283201 273542401 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 :                                   630.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             390.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            939 sec.

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

