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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin273
RA = 154.617, Dec = 5.4702
tmin = 310089601, tmax = 310348801
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='803669', job_status='RUN', time_executed='2021-09-01 17:30:19.263995', time_epoch_executed='1630542619.26' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803669/ft1_4FGL_J1018.4+0528_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803669/ft2_4FGL_J1018.4+0528_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803669/ft1_4FGL_J1018.4+0528_daily_bin273.fits outfile=/scratch/kocevski/803669/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin273.fits ra=154.617 dec=5.4702 rad=12.0 tmin=310089601.0 tmax=310348801.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.49
user 3.18
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803669/ft2_4FGL_J1018.4+0528_daily_bin273.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/803669/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin273.fits evtable="EVENTS" outfile="/scratch/kocevski/803669/ft1_filtered_4FGL_J1018.4+0528_daily_bin273.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803669/ft1_filtered_4FGL_J1018.4+0528_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/803669/ft2_4FGL_J1018.4+0528_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/803669/ltcube_310089601_310348801_4FGL_J1018.4+0528_daily_bin273.fits outfile=/scratch/kocevski/803669/expmap_310089601_310348801_4FGL_J1018.4+0528_daily_bin273.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/803669/ltcube_310089601_310348801_4FGL_J1018.4+0528_daily_bin273.fits
.....................!
real 194.90
user 187.42
sys 5.09

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/803669/ft1_filtered_4FGL_J1018.4+0528_daily_bin273.fits scfile=/scratch/kocevski/803669/ft2_4FGL_J1018.4+0528_daily_bin273.fits outfile=/scratch/kocevski/803669/cmap_310089601_310348801_4FGL_J1018.4+0528_daily_bin273.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803669/ft1_filtered_4FGL_J1018.4+0528_daily_bin273.fits scfile=/scratch/kocevski/803669/ft2_4FGL_J1018.4+0528_daily_bin273.fits outfile=/scratch/kocevski/803669/cmap_HighResolution_310089601_310348801_4FGL_J1018.4+0528_daily_bin273.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2485       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2482       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.155       1.0000         .10000E-03   10000.    
     6 'norm      '    13.391       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14710E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.613       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12457E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5266       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2234       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.9006       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71779       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=   6217.858     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2033 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2491        1.8207        .16801E-06   -.10312E-03
   2  norm          3.1414        .94697        .30708E-07    .21003E-03
   3  Prefactor     .10001E-03    26.929        .36318E-05** at limit **
   4  Prefactor     8.2462        27.740        .20143E-06    .39663E-04
   5  Prefactor     19.152        33.739        .34887E-06    .61611E-04
   6  norm          13.354        17.171       -.12934E-05   -.27368E-03
   7  Prefactor     .10000E-03    9.5784        .18951E-05** at limit **
   8  Prefactor     28.022        63.705        .31056E-05    .55895E-04
   9  Prefactor     .10000E-03    44.655        .17725E-05** at limit **
  10  Prefactor     12.601        13.704        .10765E-06   -.19029E-04
  11  norm          .10000E-03    .48797       -.55624E-07** at limit **
  12  Prefactor     .10003E-03    21.197       -.68183E-05** at limit **
  13  Prefactor     .10000E-03    1.4123        .49253E-07** at limit **
  14  Prefactor     2.5292        8.5258        .26989E-06   -.94581E-05
  15  Prefactor     .10000E-03    7.4147       -.26452E-06** at limit **
  16  norm          1.2234        .73954        .59047E-07    .55706E-03
  17  Prefactor     1.8166        13.462       -.55435E-06    .33639E-03
  18  Prefactor     .10000E-03    6.4164       -.57406E-07** at limit **
  19  Normalizat    1.9003        .25605       -.45579E-05   -.25842E-04
  20  Prefactor     .71775        .20043        .49986E-05    .11462E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24913
  norm       = 3.14141
  Prefactor  = 0.000100007
  Prefactor  = 8.24618
  Prefactor  = 19.1524
  norm       = 13.3536
  Prefactor  = 0.000100002
  Prefactor  = 28.0219
  Prefactor  = 0.000100003
  Prefactor  = 12.6008
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 2.52917
  Prefactor  = 0.0001
  norm       = 1.22339
  Prefactor  = 1.8166
  Prefactor  = 0.0001
  Normalizat = 1.90034
  Prefactor  = 0.717753
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.858     FROM HESSE     STATUS=OK           295 CALLS     2328 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2491        1.8067        .11805E-03   -1.5484    
   2  norm          3.1414        .94599        .40269E-04   -1.5353    
   3  Prefactor     .10001E-03    28.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2462        27.725        .13959E-03   -1.5134    
   5  Prefactor     19.152        33.731        .91513E-04   -1.4832    
   6  norm          13.354        17.416        .10946E-03   -1.4977    
   7  Prefactor     .10000E-03    9.9470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.022        64.368        .75599E-04   -1.4649    
   9  Prefactor     .10000E-03    44.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.601        13.682        .11279E-03   -1.4998    
  11  norm          .10000E-03    .49399        .53748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    26.044        .38416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4366        .91491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5292        8.5203        .25698E-03   -1.5390    
  15  Prefactor     .10000E-03    7.6363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2234        .75800        .21676E-03   -1.5487    
  17  Prefactor     1.8166        15.903        .15503E-02   -1.5438    
  18  Prefactor     .10000E-03    6.4193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.9003        .27996        .24753E-03   -.67072    
  20  Prefactor     .71775        .21895        .31062E-03   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74569e-09
Minuit parameter uncertainties:
  1  1.8068
  2  0.94599
  3  0.000901581
  4  27.7685
  5  33.7642
  6  17.423
  7  0.000299143
  8  64.5277
  9  0.000694181
  10  13.6858
  11  9.14775e-07
  12  0.00171448
  13  5.04728e-06
  14  8.52435
  15  2.27581e-05
  16  0.758002
  17  10.7533
  18  6.21088e-06
  19  0.280199
  20  0.219217
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  6.942e-04  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:  7.178e-01  2.192e-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:  1.900e+00  2.802e-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: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803669/likelihoodResults_310089601_310348801_4FGL_J1018.4+0528_daily_bin273.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) = 6217.85849098
delta logL = -0.000105922977127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6217.85849094
delta logL = -0.000105889465885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96314E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2835       1.0000          .0000       10.000    
     3 'Normalizat'    1.9003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71775       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6217.750     FROM MIGRAD    STATUS=FAILED       179 CALLS      327 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.899        6459.3        .18143E-01    .23323E-02
   2  Index         1.2677        6.3734        .44675       -.23687E-04
   3  Normalizat    1.9006        .82846E-01    .24753E-03    .64301E-05
   4  Prefactor     .71611        .56698E-01    .31062E-03   -.51606E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6217.750     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      421 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.899        6459.3        .90221E-03    .23323E-02
   2  Index         1.2677        6.3734        .18983E-02   -.23687E-04
   3  Normalizat    1.9006        .82846E-01    .99992E-04    .64301E-05
   4  Prefactor     .71611        .56698E-01    .67319E-04   -.51606E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6217.750     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      454 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.899        58.554        .36287E-02    .87957E-04
   2  Index         1.2677        .91708        .15661E-01   -.98546E-04
   3  Normalizat    1.9006        .25923        .99011E-05    .64301E-05
   4  Prefactor     .71611        .21415        .12425E-04   -.51240E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8985
  Index      = 1.26769
  Normalizat = 1.90059
  Prefactor  = 0.716113
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.750     FROM HESSE     STATUS=OK            27 CALLS      481 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.899        59.232        .72574E-03   -1.4751    
   2  Index         1.2677        .92797        .31323E-02   -.84273    
   3  Normalizat    1.9006        .25916        .19802E-05   -.67066    
   4  Prefactor     .71611        .21407        .24850E-05   -1.0290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08479e-12
Minuit parameter uncertainties:
  1  59.3848
  2  0.940445
  3  0.259349
  4  0.214317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803669': 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) = 6217.74973451
delta logL = 0.108650544155

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  2.290e+01  5.938e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.268e+00  9.404e-01  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:  7.161e-01  2.143e-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:  1.901e+00  2.593e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/803669/cmap_HighResolution_310089601_310348801_4FGL_J1018.4+0528_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-01 17:40:26.945432', job_id='803669', GAL2='0.72', fit_tolerance='1e-08', EG2='1.90', EG='1.90', time_epoch_completed='1630543226.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.09e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='273' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:40:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 803669: <4FGL_J1018.4+0528_daily_bin273> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin273> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:36 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:26:29 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:29 2021
Terminated at Wed Sep  1 17:40:27 2021
Results reported at Wed Sep  1 17:40:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin273 154.617 5.4702 310089601 310348801 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 :                                   603.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            891 sec.

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

