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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin936
RA = 154.617, Dec = 5.4702
tmin = 481939201, tmax = 482198401
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='806539', job_status='RUN', time_executed='2021-09-01 17:40:23.226411', time_epoch_executed='1630543223.23' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806539/ft1_4FGL_J1018.4+0528_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806539/ft1_4FGL_J1018.4+0528_daily_bin936.fits outfile=/scratch/kocevski/806539/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin936.fits ra=154.617 dec=5.4702 rad=12.0 tmin=481939201.0 tmax=482198401.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.65
user 3.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.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/806539/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin936.fits evtable="EVENTS" outfile="/scratch/kocevski/806539/ft1_filtered_4FGL_J1018.4+0528_daily_bin936.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806539/ft1_filtered_4FGL_J1018.4+0528_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/806539/ltcube_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.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/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits
.....................!
real 15.50
user 15.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806539/ft1_filtered_4FGL_J1018.4+0528_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/806539/ltcube_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.fits outfile=/scratch/kocevski/806539/expmap_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.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/806539/ltcube_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.fits
.....................!
real 191.27
user 186.58
sys 4.26

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/806539/ft1_filtered_4FGL_J1018.4+0528_daily_bin936.fits scfile=/scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits outfile=/scratch/kocevski/806539/cmap_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806539/ft1_filtered_4FGL_J1018.4+0528_daily_bin936.fits scfile=/scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits outfile=/scratch/kocevski/806539/cmap_HighResolution_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806539/ft1_filtered_4FGL_J1018.4+0528_daily_bin936.fits', '/scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits', expMap='/scratch/kocevski/806539/expmap_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.fits', expCube='/scratch/kocevski/806539/ltcube_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806539/Model_4FGL_J1018.4+0528_daily_bin936.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/806539/ft1_filtered_4FGL_J1018.4+0528_daily_bin936.fits
Spacecraft file(s): /scratch/kocevski/806539/ft2_4FGL_J1018.4+0528_daily_bin936.fits
Exposure map: /scratch/kocevski/806539/expmap_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.fits
Exposure cube: /scratch/kocevski/806539/ltcube_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806539/Model_4FGL_J1018.4+0528_daily_bin936.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) = 6810.22845846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9427       1.0000         .10000E-03   10000.    
     2 'norm      '    .68110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.480       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9565       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3925       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1533       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3706       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16783E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .68156       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62067       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1222       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6810.195     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     2331 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9425        1.6888        .50634E-04    .10921E-03
   2  norm          .68101        .49929        .48699E-03   -.34936E-03
   3  Prefactor     .10000E-03    6.2774        .18142E-02** at limit **
   4  Prefactor     9.2820        26.557        .13143E-03    .43163E-04
   5  Prefactor     29.467        25.334        .73790E-04    .65633E-04
   6  norm          2.9601        9.1205        .23618E-03   -.19736E-05
   7  Prefactor     .10000E-03    3.2053        .14385E-02** at limit **
   8  Prefactor     .10000E-03    16.727        .18142E-02** at limit **
   9  Prefactor     .10000E-03    14.723        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.8001        .17647E-02** at limit **
  11  norm          6.1167        1.6502        .52574E-04    .12001E-03
  12  Prefactor     .10000E-03    2.8644        .13538E-02** at limit **
  13  Prefactor     2.3924        2.9875        .14913E-03   -.30112E-04
  14  Prefactor     14.383        9.9492        .10562E-03    .24219E-04
  15  Prefactor     6.1532        6.2791        .16184E-03    .16564E-03
  16  norm          2.3703        .66212        .33894E-04    .18017E-02
  17  Prefactor     .10000E-03    21.898        .36285E-02** at limit **
  18  Prefactor     .64772        157.22        .64015E-02    .41099E-04
  19  Normalizat    .62075        .20029        .31726E-03    .16907E-03
  20  Prefactor     1.1222        .16528        .20884E-03    .10781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.94248
  norm       = 0.681005
  Prefactor  = 0.0001
  Prefactor  = 9.28202
  Prefactor  = 29.4674
  norm       = 2.96008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.11671
  Prefactor  = 0.0001
  Prefactor  = 2.39239
  Prefactor  = 14.3829
  Prefactor  = 6.15318
  norm       = 2.37034
  Prefactor  = 0.000100001
  Prefactor  = 0.647719
  Normalizat = 0.62075
  Prefactor  = 1.12218
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.195     FROM HESSE     STATUS=OK           275 CALLS     2606 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9425        1.6884        .10127E-04   -1.5181    
   2  norm          .68101        .49897        .19479E-04   -1.5543    
   3  Prefactor     .10000E-03    6.2798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2820        26.546        .52572E-05   -1.5099    
   5  Prefactor     29.467        25.327        .29516E-05   -1.4622    
   6  norm          2.9601        9.1192        .94471E-05   -1.5364    
   7  Prefactor     .10000E-03    3.2057        .28770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8003        .35295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1167        1.6498        .21029E-05   -1.5213    
  12  Prefactor     .10000E-03    2.8653        .27077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3924        2.9870        .59653E-05   -1.5399    
  14  Prefactor     14.383        9.9489        .42248E-05   -1.4949    
  15  Prefactor     6.1532        6.2746        .64737E-05   -1.5212    
  16  norm          2.3703        .66127        .67788E-05   -1.5400    
  17  Prefactor     .10000E-03    22.007        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .64772        160.11        .25606E-03   -1.5547    
  19  Normalizat    .62075        .19987        .12690E-04   -1.0711    
  20  Prefactor     1.1222        .16538        .41767E-04   -.88761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03826e-10
Minuit parameter uncertainties:
  1  1.68838
  2  0.498974
  3  2.00954e-05
  4  26.5798
  5  25.3362
  6  9.12347
  7  1.02996e-05
  8  1.79653e-05
  9  5.61672e-05
  10  4.00544e-06
  11  1.64985
  12  1.44417e-05
  13  2.98721
  14  9.95006
  15  6.27527
  16  0.661268
  17  0.000217796
  18  20.4212
  19  0.200101
  20  0.165452
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  5.617e-05  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.122e+00  1.655e-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:  6.208e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/806539/likelihoodResults_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.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) = 6810.19524017
delta logL = -0.000323393342114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6810.1949182
delta logL = -1.42210592458e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5032       1.0000          .0000       10.000    
     3 'Normalizat'    .62074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1222       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6810.195     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      270 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    58.488        .18142E-02** at limit **
   2  Index         2.4413        8.5077        .50000        .25194E-04
   3  Normalizat    .62075        .93036E-02    .31725E-03   -.36530E-03
   4  Prefactor     1.1222        .80936E-02    .20884E-03   -.58453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010171
  Index      = 2.4413
  Normalizat = 0.620748
  Prefactor  = 1.12218
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.195     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    257.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4413        8.2652        .50000       -.53721    
   3  Normalizat    .62075        .19940E-01    .12690E-04   -1.0711    
   4  Prefactor     1.1222        .17347E-01    .41767E-04   -.88761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01936e-08
Minuit parameter uncertainties:
  1  0.0421521
  2  317.638
  3  0.0199406
  4  0.0173468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806539': 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) = 6810.1949176
delta logL = -8.2176484284e-07

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.017e-04  4.215e-02  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.441e+00  3.176e+02  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.122e+00  1.735e-02  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:  6.207e-01  1.994e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/806539/cmap_HighResolution_481939201_482198401_4FGL_J1018.4+0528_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-01 17:50:38.698520', job_id='806539', GAL2='1.12', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1630543838.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-8.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='936' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 806539: <4FGL_J1018.4+0528_daily_bin936> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin936> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 17:35:56 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:37:14 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:37:14 2021
Terminated at Wed Sep  1 17:50:39 2021
Results reported at Wed Sep  1 17:50:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin936 154.617 5.4702 481939201 482198401 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            883 sec.

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

