/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 157 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.4-0234_daily_bin24
RA = 157.121, Dec = -2.5829
tmin = 245548801, tmax = 245808001
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='904512', job_status='RUN', time_executed='2021-09-01 23:21:48.419936', time_epoch_executed='1630563708.42' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904512/ft1_4FGL_J1028.4-0234_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904512/ft2_4FGL_J1028.4-0234_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904512/ft1_4FGL_J1028.4-0234_daily_bin24.fits outfile=/scratch/kocevski/904512/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin24.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=245548801.0 tmax=245808001.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.47
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904512/ft1_filtered_4FGL_J1028.4-0234_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/904512/ft2_4FGL_J1028.4-0234_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/904512/ltcube_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.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/904512/ft2_4FGL_J1028.4-0234_daily_bin24.fits
.....................!
real 19.77
user 19.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904512/ft1_filtered_4FGL_J1028.4-0234_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/904512/ft2_4FGL_J1028.4-0234_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/904512/ltcube_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.fits outfile=/scratch/kocevski/904512/expmap_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.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/904512/ltcube_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.fits
.....................!
real 192.85
user 188.10
sys 4.02

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/904512/ft1_filtered_4FGL_J1028.4-0234_daily_bin24.fits scfile=/scratch/kocevski/904512/ft2_4FGL_J1028.4-0234_daily_bin24.fits outfile=/scratch/kocevski/904512/cmap_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=157.121 yref=-2.5829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904512/ft1_filtered_4FGL_J1028.4-0234_daily_bin24.fits scfile=/scratch/kocevski/904512/ft2_4FGL_J1028.4-0234_daily_bin24.fits outfile=/scratch/kocevski/904512/cmap_HighResolution_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904512/ft1_filtered_4FGL_J1028.4-0234_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/904512/ft2_4FGL_J1028.4-0234_daily_bin24.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904512/Model_4FGL_J1028.4-0234_daily_bin24.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/904512/ft1_filtered_4FGL_J1028.4-0234_daily_bin24.fits.....................!
real 67.23
user 65.84
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85604       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5836       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0788       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.705       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28520E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2025       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4395       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99301       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0763       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=   7072.649     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1604 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85591        .59299        .19868E-07    .56813E-04
   2  norm          2.5837        1.7890        .31641E-07    .14317E-04
   3  Prefactor     6.0783        12.321        .44841E-05   -.74442E-04
   4  Prefactor     19.672        30.801       -.18237E-05   -.14123E-03
   5  Prefactor     .10000E-03    94.509       -.80329E-05** at limit **
   6  norm          26.199        21.068       -.14364E-05   -.38270E-04
   7  Prefactor     21.003        10.718       -.80020E-07   -.20955E-04
   8  Prefactor     .10000E-03    17.771        .20064E-06** at limit **
   9  Prefactor     .10000E-03    15.219       -.12639E-06** at limit **
  10  Prefactor     .10000E-03    4.2803        .56494E-08** at limit **
  11  norm          .10000E-03    .47975       -.50338E-07** at limit **
  12  Prefactor     .10000E-03    1.8912       -.38065E-07** at limit **
  13  Prefactor     1.7161        2.4417       -.72169E-07   -.21998E-03
  14  Prefactor     1.2012        7.5331        .38424E-05   -.52335E-04
  15  norm          1.4397        .50902       -.20614E-07   -.43960E-03
  16  norm          6.2575        5.8817        .86773E-07   -.54390E-05
  17  Prefactor     .10000E-03    4.6928        .11081E-07** at limit **
  18  Normalizat    .99317        .18979       -.10328E-05   -.14309E-04
  19  Prefactor     1.0761        .14274       -.38908E-06   -.27427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.855914
  norm       = 2.58367
  Prefactor  = 6.07827
  Prefactor  = 19.6721
  Prefactor  = 0.000100002
  norm       = 26.1987
  Prefactor  = 21.0033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71609
  Prefactor  = 1.20115
  norm       = 1.43968
  norm       = 6.2575
  Prefactor  = 0.0001
  Normalizat = 0.993168
  Prefactor  = 1.07612
 **********
 **   18 **HESSE 
 **********

 FCN=   7072.649     FROM HESSE     STATUS=OK           272 CALLS     1876 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85591        .57155        .51784E-03   -1.5523    
   2  norm          2.5837        1.7905        .90940E-04   -1.5386    
   3  Prefactor     6.0783        12.355        .81422E-03   -1.5215    
   4  Prefactor     19.672        31.125        .90227E-04   -1.4821    
   5  Prefactor     .10000E-03    95.679        .21411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.199        21.060        .78261E-04   -1.4684    
   7  Prefactor     21.003        10.725        .87397E-04   -1.4791    
   8  Prefactor     .10000E-03    17.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2810        .16992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .49401        .11362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9036        .11292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7161        2.4043        .14804E-03   -1.5446    
  14  Prefactor     1.2012        7.5424        .41370E-03   -1.5489    
  15  norm          1.4397        .50704        .34314E-04   -1.5468    
  16  norm          6.2575        5.8841        .16047E-03   -1.5208    
  17  Prefactor     .10000E-03    4.7380        .17764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .99317        .21558        .28720E-03   -.93260    
  19  Prefactor     1.0761        .16314        .21544E-03   -.90233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67441e-10
Minuit parameter uncertainties:
  1  0.571553
  2  1.79058
  3  12.3606
  4  31.1511
  5  0.000804686
  6  21.0655
  7  10.7258
  8  7.94998e-05
  9  5.18339e-05
  10  1.50044e-07
  11  1.97577e-06
  12  3.96315e-06
  13  2.4044
  14  6.02071
  15  0.507045
  16  5.88465
  17  2.99586e-06
  18  0.215768
  19  0.163219
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  3.963e-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:  1.076e+00  1.632e-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.932e-01  2.158e-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: 5.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904512/likelihoodResults_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.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) = 7072.65194776
delta logL = -0.00249257991436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7072.64945467
delta logL = 5.10185600433e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5917       1.0000          .0000       10.000    
     3 'Normalizat'    .99317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0761       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=   7072.649     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.864        .11514E-01** at limit **
   2  Index         1.8640        5.0464        .50000       -.39850E-06
   3  Normalizat    .99317        .16593E-01    .28720E-03   -.51898E-03
   4  Prefactor     1.0761        .12967E-01    .21544E-03   -.44587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86395
  Normalizat = 0.993165
  Prefactor  = 1.07612
 **********
 **   18 **HESSE 
 **********

 FCN=   7072.649     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    275.45        .14153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8640        5.9311        .50000       -.67796    
   3  Normalizat    .99317        .50145E-01    .57440E-04   -.93260    
   4  Prefactor     1.0761        .39189E-01    .43087E-04   -.90233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38973e-09
Minuit parameter uncertainties:
  1  6.89428e-05
  2  664.018
  3  0.050147
  4  0.0391898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904512': 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) = 7072.64944539
delta logL = 9.79105880106e-06

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  6.894e-05  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  1.864e+00  6.640e+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:  1.076e+00  3.919e-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:  9.932e-01  5.015e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/904512/cmap_HighResolution_245548801_245808001_4FGL_J1028.4-0234_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-09-01 23:31:35.037547', job_id='904512', GAL2='1.08', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630564295.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='24' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:31:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 904512: <4FGL_J1028.4-0234_daily_bin24> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin24> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 23:15:56 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:18:59 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:18:59 2021
Terminated at Wed Sep  1 23:31:35 2021
Results reported at Wed Sep  1 23:31:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin24 157.121 -2.5829 245548801 245808001 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 :                                   583.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            939 sec.

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

