/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 = 7409
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1631
RA = 154.548, Dec = 19.0963
tmin = 662083201, tmax = 662342401
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='553125', job_status='RUN', time_executed='2021-12-28 00:13:18.637352', time_epoch_executed='1640679198.64' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/553125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/553125/ft1_4FGL_J1018.1+1905_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/553125/ft1_4FGL_J1018.1+1905_daily_bin1631.fits outfile=/scratch/kocevski/553125/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1631.fits ra=154.548 dec=19.0963 rad=12.0 tmin=662083201.0 tmax=662342401.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.09
user 2.89
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.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/553125/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1631.fits evtable="EVENTS" outfile="/scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.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.46
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/553125/ltcube_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.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/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits
.....................!
real 18.93
user 18.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/553125/ltcube_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.fits outfile=/scratch/kocevski/553125/expmap_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.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/553125/ltcube_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.fits
.....................!
real 150.23
user 146.01
sys 3.94

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

Setting source of interest to:
4FGL J1018.1+1905 @ 154.548 19.0963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits scfile=/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits outfile=/scratch/kocevski/553125/cmap_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.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.548 yref=19.0963 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.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits scfile=/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits outfile=/scratch/kocevski/553125/cmap_HighResolution_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.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.548 yref=19.0963 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.47
user 0.30
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/553125/Model_4FGL_J1018.1+1905_daily_bin1631.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/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits......................!
real 29.62
user 28.53
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits', '/scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits', expMap='/scratch/kocevski/553125/expmap_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.fits', expCube='/scratch/kocevski/553125/ltcube_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/553125/Model_4FGL_J1018.1+1905_daily_bin1631.xml', optimizer='MINUIT')

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

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.691e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/553125/ft1_filtered_4FGL_J1018.1+1905_daily_bin1631.fits
Spacecraft file(s): /scratch/kocevski/553125/ft2_4FGL_J1018.1+1905_daily_bin1631.fits
Exposure map: /scratch/kocevski/553125/expmap_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.fits
Exposure cube: /scratch/kocevski/553125/ltcube_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/553125/Model_4FGL_J1018.1+1905_daily_bin1631.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) = 3469.63006557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.030       1.0000         .10000E-03   10000.    
     2 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4641       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27534E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2730       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .79512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3469.629     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1585 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.042        77.123        .19790E-04    .26449E-05
   2  norm          .10000E-03    1.9060        .16245E-06** at limit **
   3  Prefactor     .10000E-03    48.767       -.16958E-04** at limit **
   4  Prefactor     .10000E-03    36.404        .23514E-04** at limit **
   5  Prefactor     .10000E-03    7.4595       -.38424E-06** at limit **
   6  Prefactor     3.4645        3.4585       -.39182E-06   -.87872E-04
   7  norm          .10000E-03    3.7632        .22533E-06** at limit **
   8  Prefactor     11.929        80.893        .16230E-04   -.22968E-05
   9  Prefactor     25.689        45.963       -.17395E-04    .23323E-05
  10  Prefactor     .10000E-03    7.2175        .67679E-06** at limit **
  11  Prefactor     .10000E-03    .66890        .38883E-07** at limit **
  12  Prefactor     58.632        14.979        .33052E-07    .18671E-03
  13  Prefactor     .10003E-03    9.4825       -.40692E-05** at limit **
  14  Prefactor     3.4469        8.9094        .69567E-05    .30837E-03
  15  Prefactor     .10000E-03    27.197       -.52289E-05** at limit **
  16  Normalizat    1.2726        .23696       -.30324E-06    .28440E-03
  17  Prefactor     .79523        .22486       -.36832E-06    .14512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.042
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46447
  norm       = 0.0001
  Prefactor  = 11.9289
  Prefactor  = 25.6888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.6322
  Prefactor  = 0.000100027
  Prefactor  = 3.44695
  Prefactor  = 0.0001
  Normalizat = 1.27265
  Prefactor  = 0.795227
 **********
 **   18 **HESSE 
 **********

 FCN=   3469.629     FROM HESSE     STATUS=OK           219 CALLS     1804 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.042        76.970        .75670E-04   -1.4648    
   2  norm          .10000E-03    1.9886        .15865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5479        .15706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4645        3.4585        .10522E-03   -1.5336    
   7  norm          .10000E-03    3.7683        .11160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.929        80.800        .11602E-03   -1.5017    
   9  Prefactor     25.689        45.988        .79019E-04   -1.4694    
  10  Prefactor     .10000E-03    7.4136        .30894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .67062        .47041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.632        15.038        .52395E-04   -1.4175    
  13  Prefactor     .10003E-03    30.620        .33438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4469        8.6655        .21729E-03   -1.5337    
  15  Prefactor     .10000E-03    27.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2726        .27531        .23001E-03   -.84387    
  17  Prefactor     .79523        .26173        .27462E-03   -.99904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16879e-09
Minuit parameter uncertainties:
  1  77.2447
  2  8.46284e-07
  3  1.99514e-05
  4  5.48862e-06
  5  4.28215e-05
  6  3.45871
  7  2.24802e-06
  8  62.2129
  9  46.0518
  10  2.31629e-05
  11  2.12693e-07
  12  15.0395
  13  0.00181159
  14  8.66861
  15  0.000128568
  16  0.275627
  17  0.262137
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  2.569e+01  4.605e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  7.952e-01  2.621e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.273e+00  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 154.548 19.096
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/553125/likelihoodResults_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.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) = 3469.52511911
delta logL = 0.103811101452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3469.52089068
delta logL = 0.108039536278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.257       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5745       1.0000          .0000       10.000    
     3 'Normalizat'    1.2579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80179       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   3469.521     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      304 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.226        46.472        .11001E-03   -.23221E-03
   2  Index         2.5766        1.4829        .66139E-02   -.74637E-04
   3  Normalizat    1.2573        .27178        .23119E-03    .19766E-03
   4  Prefactor     .80220        .26109        .27347E-03   -.63793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2259
  Index      = 2.57661
  Normalizat = 1.25731
  Prefactor  = 0.802195
 **********
 **   18 **HESSE 
 **********

 FCN=   3469.521     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.226        35.523        .44005E-05   -1.4980    
   2  Index         2.5766        1.1405        .26456E-03   -.50599    
   3  Normalizat    1.2573        .27090        .46238E-04   -.84850    
   4  Prefactor     .80220        .26053        .10939E-04   -.99647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24616e-10
Minuit parameter uncertainties:
  1  35.5799
  2  1.15384
  3  0.271204
  4  0.260933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/553125': 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) = 3469.52088669
delta logL = 0.108043523015

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.323e+01  3.558e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.577e+00  1.154e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.022e-01  2.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.257e+00  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
Ra Dec: 154.548 19.096

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/553125/cmap_HighResolution_662083201_662342401_4FGL_J1018.1+1905_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-12-28 00:19:41.149812', job_id='553125', GAL2='0.80', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1640679581.15', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.08e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1631' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:19:41 PST 2021



------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 553215: <4FGL_J1018.1+1905_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:33 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:35 2021
Terminated at Tue Dec 28 00:19:18 2021
Results reported at Tue Dec 28 00:19:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1631 154.548 19.0963 662083201 662342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.1+1905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   438.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             207.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 553125: <4FGL_J1018.1+1905_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1631> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec 28 00:06:28 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:06:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:06:29 2021
Terminated at Tue Dec 28 00:19:41 2021
Results reported at Tue Dec 28 00:19:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1631 154.548 19.0963 662083201 662342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.1+1905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   357.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

