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


Performing analysis on: 4FGL_J1018.4+0528_daily_bin190
RA = 154.617, Dec = 5.4702
tmin = 288576001, tmax = 288835201
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='803544', job_status='RUN', time_executed='2021-09-01 17:29:47.970206', time_epoch_executed='1630542587.97' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803544/ft1_4FGL_J1018.4+0528_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803544/ft2_4FGL_J1018.4+0528_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803544/ft1_4FGL_J1018.4+0528_daily_bin190.fits outfile=/scratch/kocevski/803544/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin190.fits ra=154.617 dec=5.4702 rad=12.0 tmin=288576001.0 tmax=288835201.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.60
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803544/ft2_4FGL_J1018.4+0528_daily_bin190.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/803544/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin190.fits evtable="EVENTS" outfile="/scratch/kocevski/803544/ft1_filtered_4FGL_J1018.4+0528_daily_bin190.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.49
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803544/ft1_filtered_4FGL_J1018.4+0528_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/803544/ft2_4FGL_J1018.4+0528_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/803544/ltcube_288576001_288835201_4FGL_J1018.4+0528_daily_bin190.fits outfile=/scratch/kocevski/803544/expmap_288576001_288835201_4FGL_J1018.4+0528_daily_bin190.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/803544/ltcube_288576001_288835201_4FGL_J1018.4+0528_daily_bin190.fits
.....................!
real 192.45
user 185.86
sys 5.47

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/803544/ft1_filtered_4FGL_J1018.4+0528_daily_bin190.fits scfile=/scratch/kocevski/803544/ft2_4FGL_J1018.4+0528_daily_bin190.fits outfile=/scratch/kocevski/803544/cmap_288576001_288835201_4FGL_J1018.4+0528_daily_bin190.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803544/ft1_filtered_4FGL_J1018.4+0528_daily_bin190.fits scfile=/scratch/kocevski/803544/ft2_4FGL_J1018.4+0528_daily_bin190.fits outfile=/scratch/kocevski/803544/cmap_HighResolution_288576001_288835201_4FGL_J1018.4+0528_daily_bin190.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8517       1.0000         .10000E-03   10000.    
     2 'norm      '    .46833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5990       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.994       1.0000         .10000E-03   10000.    
     6 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.723       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .86037E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15272E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .27223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .55343E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.477       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85091       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0631       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=   6005.909     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2104 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8515        1.2269        .20977E-07    .11603E-04
   2  norm          .46846        .57321        .15634E-06    .46965E-03
   3  Prefactor     6.5981        8.7673        .28500E-06    .24444E-04
   4  Prefactor     .10000E-03    13.089       -.79792E-06** at limit **
   5  Prefactor     10.959        28.326       -.41974E-06   -.49662E-04
   6  norm          .10000E-03    8.2537       -.27175E-06** at limit **
   7  Prefactor     9.4511        9.8416       -.59754E-07   -.39001E-04
   8  Prefactor     51.696        52.776       -.48183E-06   -.59029E-04
   9  Prefactor     8.2458        64.509       -.53420E-06   -.16793E-04
  10  Prefactor     .10000E-03    7.8880       -.38616E-06** at limit **
  11  norm          .10000E-03    .31422        .13336E-07** at limit **
  12  Prefactor     .82056E-01    2.4400       -.33926E-06    .27940E-03
  13  Prefactor     .10000E-03    1.2062        .84975E-07** at limit **
  14  Prefactor     .10000E-03    6.1942        .28763E-06** at limit **
  15  Prefactor     .10028E-03    4.9210        .13744E-05** at limit **
  16  norm          .27136        .37533        .40276E-06    .21729E-02
  17  Prefactor     .10010E-03    7.1136       -.57935E-06** at limit **
  18  Prefactor     24.472        22.898       -.25495E-06   -.10673E-03
  19  Normalizat    .85104        .19794        .20079E-05   -.23578E-03
  20  Prefactor     1.0630        .16282       -.20649E-05   -.16193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85153
  norm       = 0.468462
  Prefactor  = 6.59811
  Prefactor  = 0.0001
  Prefactor  = 10.9586
  norm       = 0.0001
  Prefactor  = 9.4511
  Prefactor  = 51.6964
  Prefactor  = 8.24579
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0820558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100282
  norm       = 0.271362
  Prefactor  = 0.000100099
  Prefactor  = 24.4724
  Normalizat = 0.851039
  Prefactor  = 1.06296
 **********
 **   18 **HESSE 
 **********

 FCN=   6005.909     FROM HESSE     STATUS=OK           301 CALLS     2405 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8515        1.2254        .66786E-04   -1.5436    
   2  norm          .46846        .54908        .60330E-03   -1.5571    
   3  Prefactor     6.5981        8.7355        .15622E-03   -1.5194    
   4  Prefactor     .10000E-03    13.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.959        28.380        .12083E-03   -1.5046    
   6  norm          .10000E-03    8.2645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4511        9.7925        .13036E-03   -1.5093    
   8  Prefactor     51.696        52.725        .55765E-04   -1.4269    
   9  Prefactor     8.2458        63.641        .13957E-03   -1.5134    
  10  Prefactor     .10000E-03    7.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .31978        .42399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .82056E-01    40.060        .22871E-02   -1.5651    
  13  Prefactor     .10000E-03    2.1445        .16438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10028E-03    32.836        .28928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .27136        .37899        .57583E-03   -1.5604    
  17  Prefactor     .10010E-03    34.606        .37294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.472        22.764        .80967E-04   -1.4718    
  19  Normalizat    .85104        .21187        .26618E-03   -.98203    
  20  Prefactor     1.0630        .17275        .20597E-03   -.90659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37499e-08
Minuit parameter uncertainties:
  1  1.2254
  2  0.54909
  3  8.73719
  4  5.33432e-05
  5  28.4145
  6  1.8389e-06
  7  9.79416
  8  52.7722
  9  45.8834
  10  2.42553e-05
  11  3.39323e-07
  12  3.62633
  13  2.37332e-05
  14  1.32376e-05
  15  0.00608404
  16  0.378993
  17  0.00370494
  18  22.7719
  19  0.212081
  20  0.172838
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  8.246e+00  4.588e+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.063e+00  1.728e-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.510e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/803544/likelihoodResults_288576001_288835201_4FGL_J1018.4+0528_daily_bin190.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) = 6005.90291978
delta logL = 0.00606649879683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6005.90028378
delta logL = 0.00870250122989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.874       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9436       1.0000          .0000       10.000    
     3 'Normalizat'    .85365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0620       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=   6005.900     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      270 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.896        56.775        .11625E-03   -.31293E-05
   2  Index         1.9345        2.0217        .53043E-02    .40193E-04
   3  Normalizat    .85371        .20035        .26581E-03    .12415E-02
   4  Prefactor     1.0613        .17202        .20611E-03    .16638E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8961
  Index      = 1.9345
  Normalizat = 0.853707
  Prefactor  = 1.06132
 **********
 **   18 **HESSE 
 **********

 FCN=   6005.900     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.896        56.201        .46502E-05   -1.5018    
   2  Index         1.9345        2.0117        .21217E-03   -.65998    
   3  Normalizat    .85371        .20048        .53162E-04   -.98106    
   4  Prefactor     1.0613        .17215        .41222E-04   -.90713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49714e-09
Minuit parameter uncertainties:
  1  51.7928
  2  2.11077
  3  0.200654
  4  0.172235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803544': 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) = 6005.90024562
delta logL = 0.00874065757671

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.190e+01  5.179e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.934e+00  2.111e+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.061e+00  1.722e-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.537e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/803544/cmap_HighResolution_288576001_288835201_4FGL_J1018.4+0528_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-01 17:39:14.756319', job_id='803544', GAL2='1.06', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630543154.76', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='8.74e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='190' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 803544: <4FGL_J1018.4+0528_daily_bin190> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin190> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:28 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:25:47 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:25:47 2021
Terminated at Wed Sep  1 17:39:15 2021
Results reported at Wed Sep  1 17:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin190 154.617 5.4702 288576001 288835201 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 :                                   562.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             278.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            827 sec.

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

