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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin281
RA = 154.617, Dec = 5.4702
tmin = 312163201, tmax = 312422401
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='803682', job_status='RUN', time_executed='2021-09-01 17:29:14.434705', time_epoch_executed='1630542554.43' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803682

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803682/ft1_4FGL_J1018.4+0528_daily_bin281.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803682/ft1_4FGL_J1018.4+0528_daily_bin281.fits outfile=/scratch/kocevski/803682/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin281.fits ra=154.617 dec=5.4702 rad=12.0 tmin=312163201.0 tmax=312422401.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 3.55
user 3.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.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/803682/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin281.fits evtable="EVENTS" outfile="/scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits" evtable="EVENTS" scfile=/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits sctable="SC_DATA" outfile=/scratch/kocevski/803682/ltcube_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.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/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits
.....................!
real 15.88
user 15.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits sctable="SC_DATA" expcube=/scratch/kocevski/803682/ltcube_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.fits outfile=/scratch/kocevski/803682/expmap_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.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/803682/ltcube_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.fits
.....................!
real 192.58
user 187.08
sys 4.96

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 J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits scfile=/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits outfile=/scratch/kocevski/803682/cmap_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.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=154.617 yref=5.4702 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits scfile=/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits outfile=/scratch/kocevski/803682/cmap_HighResolution_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.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=154.617 yref=5.4702 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803682/Model_4FGL_J1018.4+0528_daily_bin281.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/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits.....................!
real 67.55
user 65.63
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits', '/scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits', expMap='/scratch/kocevski/803682/expmap_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.fits', expCube='/scratch/kocevski/803682/ltcube_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803682/Model_4FGL_J1018.4+0528_daily_bin281.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/803682/ft1_filtered_4FGL_J1018.4+0528_daily_bin281.fits
Spacecraft file(s): /scratch/kocevski/803682/ft2_4FGL_J1018.4+0528_daily_bin281.fits
Exposure map: /scratch/kocevski/803682/expmap_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.fits
Exposure cube: /scratch/kocevski/803682/ltcube_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803682/Model_4FGL_J1018.4+0528_daily_bin281.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6878.27459083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    72.453       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.166       1.0000         .10000E-03   10000.    
     6 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56484E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.154       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.530       1.0000         .10000E-03   10000.    
    16 'norm      '    .97236       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1556       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.988       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93480       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6878.258     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2404 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .71807       -.14074E-06** at limit **
   2  norm          .10000E-03    .29124       -.67642E-07** at limit **
   3  Prefactor     38.093        15.901       -.11529E-05    .70628E-04
   4  Prefactor     72.494        38.880        .40507E-05    .67890E-04
   5  Prefactor     14.165        25.350       -.25545E-05   -.76281E-05
   6  norm          .10000E-03    7.2034       -.35373E-06** at limit **
   7  Prefactor     .10078E-03    8.8919       -.31879E-05** at limit **
   8  Prefactor     .10000E-03    107.82        .67170E-05** at limit **
   9  Prefactor     13.045        32.306        .72554E-05    .91849E-04
  10  Prefactor     .10000E-03    7.0234       -.94162E-06** at limit **
  11  norm          1.0965        1.1980        .43884E-06   -.57030E-03
  12  Prefactor     .10000E-03    2.5050       -.31131E-07** at limit **
  13  Prefactor     5.1425        3.0925       -.15439E-06   -.24656E-04
  14  Prefactor     14.119        10.723        .58078E-06    .23071E-04
  15  Prefactor     10.531        7.8816        .16813E-05    .89682E-04
  16  norm          .97237        .59906       -.14636E-06   -.21329E-03
  17  Prefactor     5.1557        8.9992        .10916E-05   -.60063E-04
  18  Prefactor     18.004        22.825       -.83040E-07    .27704E-05
  19  Normalizat    .93495        .18827        .18150E-05    .13002E-03
  20  Prefactor     1.0690        .15128       -.50483E-06    .24299E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.0935
  Prefactor  = 72.4942
  Prefactor  = 14.1654
  norm       = 0.0001
  Prefactor  = 0.000100776
  Prefactor  = 0.0001
  Prefactor  = 13.0448
  Prefactor  = 0.0001
  norm       = 1.09649
  Prefactor  = 0.0001
  Prefactor  = 5.14246
  Prefactor  = 14.1187
  Prefactor  = 10.5308
  norm       = 0.972373
  Prefactor  = 5.15569
  Prefactor  = 18.0038
  Normalizat = 0.934948
  Prefactor  = 1.06904
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.258     FROM HESSE     STATUS=OK           307 CALLS     2711 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4565        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .78697        .86047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.093        16.224        .64940E-04   -1.4473    
   4  Prefactor     72.494        39.023        .47165E-04   -1.4003    
   5  Prefactor     14.165        25.363        .10642E-03   -1.4955    
   6  norm          .10000E-03    7.2106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10078E-03    13.451        .65756E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    108.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.045        39.997        .11044E-03   -1.4985    
  10  Prefactor     .10000E-03    7.0552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0965        1.1963        .22747E-03   -1.5499    
  12  Prefactor     .10000E-03    2.5469        .12816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1425        3.0892        .10763E-03   -1.5254    
  14  Prefactor     14.119        10.718        .10660E-03   -1.4956    
  15  Prefactor     10.531        7.8731        .12347E-03   -1.5059    
  16  norm          .97237        .60431        .42533E-04   -1.5511    
  17  Prefactor     5.1557        9.1466        .17705E-03   -1.5254    
  18  Prefactor     18.004        22.815        .94433E-04   -1.4859    
  19  Normalizat    .93495        .21238        .28075E-03   -.95243    
  20  Prefactor     1.0690        .17259        .22356E-03   -.90462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10901e-10
Minuit parameter uncertainties:
  1  9.68636e-07
  2  1.30014e-05
  3  16.2259
  4  39.037
  5  25.3818
  6  2.44838e-05
  7  0.00646176
  8  0.000319911
  9  40.0794
  10  5.66997e-06
  11  1.19636
  12  1.31286e-05
  13  3.08934
  14  10.719
  15  7.87391
  16  0.604316
  17  9.14903
  18  22.8257
  19  0.212567
  20  0.172675
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.304e+01  4.008e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.069e+00  1.727e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.349e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803682/likelihoodResults_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.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) = 6877.98040518
delta logL = 0.277205709379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6877.97485615
delta logL = 0.282754731827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4160       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8342       1.0000          .0000       10.000    
     3 'Normalizat'    .89162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6877.975     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      359 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3993        35.865        .90947E-02    .26460E-02
   2  Index         3.8393        2.8002        .10828        .43808E-03
   3  Normalizat    .89059        .42958E-01    .64882E-01    .50708E-03
   4  Prefactor     1.0928        .35661E-01    .37897E-01    .19239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39933
  Index      = 3.83928
  Normalizat = 0.890591
  Prefactor  = 1.09283
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.975     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      388 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3993        98.523        .11410E-03   -1.5471    
   2  Index         3.8393        6.9085        .58363E-02   -.23428    
   3  Normalizat    .89059        .18276        .28699E-03   -.96792    
   4  Prefactor     1.0928        .14470        .22139E-03   -.89696    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41189e-09
Minuit parameter uncertainties:
  1  23.5229
  2  6.95878
  3  0.182888
  4  0.144752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803682': 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) = 6877.9748435
delta logL = 0.28276739059

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.399e+00  2.352e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  3.839e+00  6.959e+00  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.093e+00  1.448e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.906e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 154.617 5.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/803682/cmap_HighResolution_312163201_312422401_4FGL_J1018.4+0528_daily_bin281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-09-01 17:39:49.466589', job_id='803682', GAL2='1.09', fit_tolerance='1e-08', EG2='0.89', EG='0.93', time_epoch_completed='1630543189.47', return_code2='102', ts='0.22', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.83e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='281' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:39:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 803682: <4FGL_J1018.4+0528_daily_bin281> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin281> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:37 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:26:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:26:35 2021
Terminated at Wed Sep  1 17:39:49 2021
Results reported at Wed Sep  1 17:39:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin281 154.617 5.4702 312163201 312422401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            852 sec.

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

