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


Performing analysis on: 4FGL_J0928.4-0415_daily_bin1403
RA = 142.12, Dec = -4.2539
tmin = 602985601, tmax = 603244801
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='238030', job_status='RUN', time_executed='2021-08-31 12:11:13.378847', time_epoch_executed='1630437073.38' WHERE source_name='4FGL J0928.4-0415' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238030/ft1_4FGL_J0928.4-0415_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238030/ft1_4FGL_J0928.4-0415_daily_bin1403.fits outfile=/scratch/kocevski/238030/ft1_filteredMKT_4FGL_J0928.4-0415_daily_bin1403.fits ra=142.12 dec=-4.2539 rad=12.0 tmin=602985601.0 tmax=603244801.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.98
user 2.79
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.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/238030/ft1_filteredMKT_4FGL_J0928.4-0415_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.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.48
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/238030/ltcube_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.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/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits
.....................!
real 16.08
user 15.74
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/238030/ltcube_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.fits outfile=/scratch/kocevski/238030/expmap_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.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/238030/ltcube_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.fits
.....................!
real 188.50
user 183.78
sys 4.29

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J0928.4-0415 @ 142.12 -4.2539

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits scfile=/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits outfile=/scratch/kocevski/238030/cmap_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.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=142.12 yref=-4.2539 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits scfile=/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits outfile=/scratch/kocevski/238030/cmap_HighResolution_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.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=142.12 yref=-4.2539 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/238030/Model_4FGL_J0928.4-0415_daily_bin1403.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/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits.......................!
real 21.24
user 19.81
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits', '/scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits', expMap='/scratch/kocevski/238030/expmap_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.fits', expCube='/scratch/kocevski/238030/ltcube_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/238030/Model_4FGL_J0928.4-0415_daily_bin1403.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0928.4-0415'

4FGL J0928.4-0415
   Spectrum: PowerLaw
246    Prefactor:  5.926e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
247        Index:  2.566e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
248        Scale:  7.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/238030/ft1_filtered_4FGL_J0928.4-0415_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/238030/ft2_4FGL_J0928.4-0415_daily_bin1403.fits
Exposure map: /scratch/kocevski/238030/expmap_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.fits
Exposure cube: /scratch/kocevski/238030/ltcube_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/238030/Model_4FGL_J0928.4-0415_daily_bin1403.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) = 836.831311662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.048       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    50.430       1.0000         .10000E-03   10000.    
     5 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35640E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    167.93       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    35.175       1.0000         .10000E-03   10000.    
    13 'norm      '    11.405       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    100.30       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0532       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   836.7813     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2424 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9797        .15031E-06** at limit **
   2  Prefactor     16.042        31.929        .47853E-07   -.80748E-04
   3  Prefactor     .10000E-03    13.372        .26519E-06** at limit **
   4  norm          50.435        57.421       -.24918E-07   -.13212E-04
   5  norm          .10000E-03    18.455        .31536E-06** at limit **
   6  Prefactor     68.506        88.383       -.63383E-06   -.13883E-05
   7  Prefactor     .10000E-03    134.40        .26031E-06** at limit **
   8  Prefactor     .10002E-03    601.81        .49527E-05** at limit **
   9  Prefactor     .10000E-03    79.423        .67033E-07** at limit **
  10  Prefactor     167.94        127.27       -.13807E-06   -.53203E-04
  11  Prefactor     .10000E-03    76.611        .65597E-07** at limit **
  12  norm          35.172        28.760       -.38306E-07   -.12103E-03
  13  norm          11.409        13.313       -.23028E-07   -.95935E-04
  14  norm          .10000E-03    3.8032        .34370E-07** at limit **
  15  norm          .10000E-03    5.2427       -.36710E-06** at limit **
  16  norm          100.29        57.433       -.17244E-06   -.75044E-04
  17  Prefactor     .10000E-03    220.86       -.14680E-06** at limit **
  18  Prefactor     .10000E-03    244.55       -.55758E-06** at limit **
  19  Normalizat    .10000E-01    .35943        .14275E-04** at limit **
  20  Prefactor     1.0533        .26125       -.24638E-05   -.11323E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.042
  Prefactor  = 0.0001
  norm       = 50.4346
  norm       = 0.0001
  Prefactor  = 68.5057
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 167.937
  Prefactor  = 0.0001
  norm       = 35.172
  norm       = 11.409
  norm       = 0.0001
  norm       = 0.0001
  norm       = 100.294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.05327
 **********
 **   18 **HESSE 
 **********

 FCN=   836.7813     FROM HESSE     STATUS=OK           279 CALLS     2703 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0684        .68945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.042        32.340        .99980E-04   -1.4907    
   3  Prefactor     .10000E-03    13.384        .10330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          50.435        57.462        .56472E-04   -1.4286    
   5  norm          .10000E-03    18.426        .12132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     68.506        88.771        .24261E-03   -1.4051    
   7  Prefactor     .10000E-03    134.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    596.97        .21316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    79.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     167.94        128.04        .31130E-04   -1.3109    
  11  Prefactor     .10000E-03    76.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          35.172        28.938        .67569E-04   -1.4521    
  13  norm          11.409        13.336        .10837E-03   -1.5032    
  14  norm          .10000E-03    3.8038        .55107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.2000        .64253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          100.29        57.591        .40143E-04   -1.3702    
  17  Prefactor     .10000E-03    220.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    244.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .51059        .10458E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0533        .27661        .18818E-03   -.90974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74303e-10
Minuit parameter uncertainties:
  1  9.03423e-06
  2  32.3757
  3  3.93312e-05
  4  57.5252
  5  6.90506e-05
  6  88.9434
  7  0.000302967
  8  0.00685805
  9  8.68476e-05
  10  128.256
  11  7.42406e-08
  12  28.9495
  13  13.3395
  14  3.24839e-06
  15  5.56438e-05
  16  57.6236
  17  7.11905e-05
  18  0.000125871
  19  4.20195e-06
  20  0.276985
Done.

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

Extracting fit parameters...

4FGL J0928.4-0415
   Spectrum: PowerLaw
246    Prefactor:  1.000e-04  6.858e-03  1.000e-04  1.000e+04 ( 1.000e-13)
247        Index:  2.566e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
248        Scale:  7.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  1.053e+00  2.770e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.000e-02  4.202e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.120 -4.254
Photon Flux Upper Limit: 7.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/238030/likelihoodResults_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.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) = 836.781342391
delta logL = -9.68692313563e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 836.781340603
delta logL = -7.89838384208e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96192E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5663       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0532       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5040E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   836.7770     FROM MIGRAD    STATUS=FAILED       170 CALLS      324 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.649        6345.7        .18146E-01    .23727E-03
   2  Index         1.7568        5.6055        .27718       -.66507E-05
   3  Normalizat    .10000E-01    .38862        .10457E-01** at limit **
   4  Prefactor     1.0487        .53374        .18818E-03   -.12838E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   836.7770     FROM SIMPLEX   STATUS=UNCHANGED    194 CALLS      518 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.649        6345.7        .15595E-06    .23727E-03
   2  Index         1.7568        5.6055        .46121E-07   -.66507E-05
   3  Normalizat    .10000E-01    .38862        .22468E-02** at limit **
   4  Prefactor     1.0487        .53374        .41610E-11   -.12838E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   836.7770     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      550 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.649        670.92        .36292E-02    .94903E-05
   2  Index         1.7568        2.4518        .14940E-01   -.10949E-05
   3  Normalizat    .10000E-01    .51544        .20915E-02** at limit **
   4  Prefactor     1.0487        .20984        .75272E-05   -.11328E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6487
  Index      = 1.75681
  Normalizat = 0.01
  Prefactor  = 1.04869
 **********
 **   18 **HESSE 
 **********

 FCN=   836.7770     FROM HESSE     STATUS=OK            27 CALLS      577 TOTAL
                     EDM=   .40E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.649        681.72        .72583E-03   -1.4756    
   2  Index         1.7568        2.4715        .59760E-03   -.70579    
   3  Normalizat    .10000E-01    .51545        .41829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0487        .20977        .15054E-05   -.91124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02593e-14
Minuit parameter uncertainties:
  1  251.73
  2  2.68999
  3  3.93398e-09
  4  0.209933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238030': 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) = 836.77700335
delta logL = 0.00432935439892

Extracting fit parameters...

4FGL J0928.4-0415
   Spectrum: PowerLaw
246    Prefactor:  2.265e+01  2.517e+02  1.000e-04  1.000e+04 ( 1.000e-13)
247        Index:  1.757e+00  2.690e+00  0.000e+00  1.000e+01 (-1.000e+00)
248        Scale:  7.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
501    Prefactor:  1.049e+00  2.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
502        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
503        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
500   Normalization:  1.000e-02  3.934e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.120 -4.254

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/238030/cmap_HighResolution_602985601_603244801_4FGL_J0928.4-0415_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-02', job_status='DONE', photon_flux_upper_limit='7.00e-07', time_completed='2021-08-31 12:17:14.886319', job_id='238030', GAL2='1.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630437434.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.33e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1403' AND source_name='4FGL J0928.4-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 12:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 238030: <4FGL_J0928.4-0415_daily_bin1403> in cluster <slac> Done

Job <4FGL_J0928.4-0415_daily_bin1403> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 12:10:53 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 12:10:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 12:10:56 2021
Terminated at Tue Aug 31 12:17:15 2021
Results reported at Tue Aug 31 12:17:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0928.4-0415_daily_bin1403 142.12 -4.2539 602985601 603244801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0928.4-0415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   346.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   379 sec.
    Turnaround time :                            382 sec.

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

