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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1306
RA = 154.548, Dec = 19.0963
tmin = 577843201, tmax = 578102401
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='792746', job_status='RUN', time_executed='2021-09-01 16:56:24.423931', time_epoch_executed='1630540584.42' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792746

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792746/ft1_4FGL_J1018.1+1905_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792746/ft1_4FGL_J1018.1+1905_daily_bin1306.fits outfile=/scratch/kocevski/792746/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1306.fits ra=154.548 dec=19.0963 rad=12.0 tmin=577843201.0 tmax=578102401.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.26
user 3.04
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792746/ft1_filtered_4FGL_J1018.1+1905_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/792746/ltcube_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.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/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits
.....................!
real 14.76
user 14.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792746/ft1_filtered_4FGL_J1018.1+1905_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/792746/ltcube_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.fits outfile=/scratch/kocevski/792746/expmap_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.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/792746/ltcube_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.fits
.....................!
real 190.42
user 186.08
sys 3.92

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/792746/ft1_filtered_4FGL_J1018.1+1905_daily_bin1306.fits scfile=/scratch/kocevski/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits outfile=/scratch/kocevski/792746/cmap_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792746/ft1_filtered_4FGL_J1018.1+1905_daily_bin1306.fits scfile=/scratch/kocevski/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits outfile=/scratch/kocevski/792746/cmap_HighResolution_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.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.55
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792746/ft1_filtered_4FGL_J1018.1+1905_daily_bin1306.fits', '/scratch/kocevski/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits', expMap='/scratch/kocevski/792746/expmap_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.fits', expCube='/scratch/kocevski/792746/ltcube_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792746/Model_4FGL_J1018.1+1905_daily_bin1306.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/792746/ft1_filtered_4FGL_J1018.1+1905_daily_bin1306.fits
Spacecraft file(s): /scratch/kocevski/792746/ft2_4FGL_J1018.1+1905_daily_bin1306.fits
Exposure map: /scratch/kocevski/792746/expmap_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.fits
Exposure cube: /scratch/kocevski/792746/ltcube_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792746/Model_4FGL_J1018.1+1905_daily_bin1306.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) = 6135.65818606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .18069       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51083E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    37.210       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5437       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.057       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3751       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .66608       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=   6135.654     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1634 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.152        .12871E-04** at limit **
   2  norm          .18071        1.1746        .20017E-07   -.11047E-03
   3  Prefactor     .10000E-03    31.023       -.11284E-04** at limit **
   4  Prefactor     .10000E-03    26.520       -.20491E-04** at limit **
   5  Prefactor     1.1619        1.1718        .14496E-06   -.11953E-02
   6  Prefactor     .10086E-03    1.0152       -.18695E-06** at limit **
   7  norm          37.210        11.473       -.79951E-07    .40190E-04
   8  Prefactor     .10000E-03    35.154        .24476E-04** at limit **
   9  Prefactor     7.5429        23.496       -.58022E-06    .17704E-05
  10  Prefactor     .10000E-03    3.5553        .66606E-07** at limit **
  11  Prefactor     1.3534        1.9820       -.28752E-08   -.70414E-05
  12  Prefactor     .10000E-03    4.2696        .52943E-07** at limit **
  13  Prefactor     .10000E-03    13.634       -.23181E-06** at limit **
  14  Prefactor     .10000E-03    4.9187        .11762E-08** at limit **
  15  Prefactor     13.059        17.305       -.12885E-05    .55936E-05
  16  Normalizat    1.3753        .16985        .28772E-06    .81631E-04
  17  Prefactor     .66599        .15855       -.19277E-06    .78801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.180713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1619
  Prefactor  = 0.000100861
  norm       = 37.2103
  Prefactor  = 0.0001
  Prefactor  = 7.54288
  Prefactor  = 0.0001
  Prefactor  = 1.35344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0592
  Normalizat = 1.37526
  Prefactor  = 0.665986
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.654     FROM HESSE     STATUS=OK           229 CALLS     1863 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .18071        1.1862        .16361E-03   -1.5623    
   3  Prefactor     .10000E-03    31.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1619        8.3248        .20860E-02   -1.5492    
   6  Prefactor     .10086E-03    2.1967        .28133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.210        11.541        .65702E-04   -1.4487    
   8  Prefactor     .10000E-03    35.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5429        23.505        .14601E-03   -1.5159    
  10  Prefactor     .10000E-03    3.5837        .14417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3534        1.9542        .12770E-03   -1.5475    
  12  Prefactor     .10000E-03    4.3098        .15802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9355        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.059        17.327        .11085E-03   -1.4985    
  16  Normalizat    1.3753        .20280        .21394E-03   -.81347    
  17  Prefactor     .66599        .18644        .28034E-03   -1.0488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71181e-09
Minuit parameter uncertainties:
  1  4.52499e-06
  2  0.925752
  3  4.27516e-06
  4  2.74177e-05
  5  6.22114
  6  0.00275034
  7  11.5418
  8  7.59602e-06
  9  23.5337
  10  1.12077e-06
  11  1.95433
  12  4.04163e-09
  13  5.90385e-05
  14  8.20768e-06
  15  17.3333
  16  0.202918
  17  0.186612
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  7.543e+00  2.353e+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:  6.660e-01  1.866e-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.375e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 154.548 19.096
Photon Flux Upper Limit: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792746/likelihoodResults_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.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) = 6135.64885288
delta logL = 0.0054478123302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6135.64666175
delta logL = 0.00763894380543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4615       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8994       1.0000          .0000       10.000    
     3 'Normalizat'    1.3760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66551       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=   6135.647     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      278 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4662        31.620        .13029E-03   -.27136E-03
   2  Index         1.8990        1.2901        .14155E-01   -.13687E-03
   3  Normalizat    1.3765        .19500        .21386E-03    .51419E-03
   4  Prefactor     .66502        .18589        .28052E-03    .57681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.46623
  Index      = 1.89902
  Normalizat = 1.37648
  Prefactor  = 0.665021
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.647     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4662        30.151        .26057E-04   -1.5093    
   2  Index         1.8990        1.2330        .56620E-03   -.66899    
   3  Normalizat    1.3765        .19506        .42772E-04   -.81311    
   4  Prefactor     .66502        .18597        .56104E-04   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55081e-09
Minuit parameter uncertainties:
  1  30.1994
  2  1.25431
  3  0.195168
  4  0.186145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792746': 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) = 6135.64665801
delta logL = 0.00764267994327

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  9.466e+00  3.020e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.899e+00  1.254e+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:  6.650e-01  1.861e-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.376e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/792746/cmap_HighResolution_577843201_578102401_4FGL_J1018.1+1905_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-01 17:05:20.298354', job_id='792746', GAL2='0.67', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630541120.3', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='7.64e-03', ts2='0.14', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1306' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 792746: <4FGL_J1018.1+1905_daily_bin1306> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1306> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 16:51:09 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:52:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:52:52 2021
Terminated at Wed Sep  1 17:05:21 2021
Results reported at Wed Sep  1 17:05:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1306 154.548 19.0963 577843201 578102401 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 :                                   531.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            852 sec.

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

