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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin814
RA = 154.607, Dec = 35.6802
tmin = 450316801, tmax = 450576001
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='812730', job_status='RUN', time_executed='2021-09-01 17:56:01.922056', time_epoch_executed='1630544161.92' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812730/ft1_4FGL_J1018.4+3540_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812730/ft1_4FGL_J1018.4+3540_daily_bin814.fits outfile=/scratch/kocevski/812730/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin814.fits ra=154.607 dec=35.6802 rad=12.0 tmin=450316801.0 tmax=450576001.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 4.00
user 3.76
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/812730/ltcube_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.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/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits
.....................!
real 16.49
user 16.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/812730/ltcube_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.fits outfile=/scratch/kocevski/812730/expmap_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.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/812730/ltcube_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.fits
.....................!
real 194.23
user 188.76
sys 4.99

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

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits scfile=/scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits outfile=/scratch/kocevski/812730/cmap_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.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.607 yref=35.6802 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/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits scfile=/scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits outfile=/scratch/kocevski/812730/cmap_HighResolution_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.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.607 yref=35.6802 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/812730/Model_4FGL_J1018.4+3540_daily_bin814.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/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits.....................!
real 53.77
user 52.40
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits', '/scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits', expMap='/scratch/kocevski/812730/expmap_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.fits', expCube='/scratch/kocevski/812730/ltcube_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/812730/Model_4FGL_J1018.4+3540_daily_bin814.xml', optimizer='MINUIT')

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

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/812730/ft1_filtered_4FGL_J1018.4+3540_daily_bin814.fits
Spacecraft file(s): /scratch/kocevski/812730/ft2_4FGL_J1018.4+3540_daily_bin814.fits
Exposure map: /scratch/kocevski/812730/expmap_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.fits
Exposure cube: /scratch/kocevski/812730/ltcube_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/812730/Model_4FGL_J1018.4+3540_daily_bin814.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) = 5892.46703141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1299       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56654E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5938       1.0000         .10000E-03   10000.    
     9 'norm      '    21.111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11601E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.396       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6564       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .13637E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6990       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .29124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5892.465     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3305 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1312        10.032        .35153E-02   -.12066E-03
   2  norm          .10000E-03    8.7937        .90712E-02** at limit **
   3  Prefactor     30.685        37.668        .18086E-02    .19327E-03
   4  Prefactor     .10000E-03    19.209        .11723    ** at limit **
   5  Prefactor     .10000E-03    12.754        .90712E-02** at limit **
   6  Prefactor     .10000E-03    6.9304        .90712E-02** at limit **
   7  Prefactor     .10000E-03    4.8794        .90712E-02** at limit **
   8  Prefactor     1.5942        1.7248        .84004E-02   -.31373E-03
   9  norm          21.114        11.109        .21794E-02    .60959E-03
  10  Prefactor     .10000E-03    1.1235        .90712E-02** at limit **
  11  Prefactor     .10000E-03    17.522        .90712E-02** at limit **
  12  Prefactor     .10000E-03    1.2883        .90712E-02** at limit **
  13  norm          5.8457        10.156        .41501E-02   -.11031E-03
  14  Prefactor     .10000E-03    16.733        .90712E-02** at limit **
  15  Prefactor     .10000E-03    68.448        .90712E-02** at limit **
  16  Prefactor     .10000E-03    1.6395        .90712E-02** at limit **
  17  Prefactor     .10004E-03    3.0511        .76942E-01** at limit **
  18  Prefactor     .10002E-03    10.863        .90712E-02** at limit **
  19  Prefactor     21.748        21.303        .21471E-02   -.22535E-03
  20  Prefactor     28.398        88.665        .18796E-02   -.22317E-03
  21  Prefactor     .10001E-03    9.1527        .90712E-02** at limit **
  22  norm          2.6561        .44083        .45490E-02   -.77324E-03
  23  Prefactor     .10003E-03    10.045        .90712E-02** at limit **
  24  Prefactor     .10000E-03    12.695        .90712E-02** at limit **
  25  norm          .10000E-03    39.631        .90712E-02** at limit **
  26  Normalizat    1.6990        .21283        .45451E-01   -.69986E-03
  27  Prefactor     .29106        .23494        .11256       -.18525E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.13117
  norm       = 0.000100001
  Prefactor  = 30.6854
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59418
  norm       = 21.1136
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.84572
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.000100023
  Prefactor  = 21.7481
  Prefactor  = 28.3985
  Prefactor  = 0.000100007
  norm       = 2.65614
  Prefactor  = 0.000100025
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Normalizat = 1.699
  Prefactor  = 0.291055
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.465     FROM HESSE     STATUS=OK           482 CALLS     3787 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1312        10.015        .14061E-03   -1.5138    
   2  norm          .10000E-03    8.8248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.685        37.663        .72343E-04   -1.4600    
   4  Prefactor     .10000E-03    22.847        .10287       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9068        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5942        1.7196        .10140E-03   -1.5455    
   9  norm          21.114        11.093        .87175E-04   -1.4789    
  10  Prefactor     .10000E-03    1.1280        .79442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2934        .85069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8457        10.090        .16601E-03   -1.5224    
  14  Prefactor     .10000E-03    16.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    68.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6515        .95941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10004E-03    24.592        .25424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    10.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.748        21.291        .85886E-04   -1.4775    
  20  Prefactor     28.398        88.904        .75182E-04   -1.4642    
  21  Prefactor     .10001E-03    9.2181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6561        .44105        .20085E-04   -1.5382    
  23  Prefactor     .10003E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    41.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6990        .21363        .20089E-03   -.72330    
  27  Prefactor     .29106        .23021        .49872E-03   -1.2279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78421e-09
Minuit parameter uncertainties:
  1  10.0172
  2  0.000151048
  3  37.692
  4  0.000530728
  5  0.000206189
  6  1.48726e-05
  7  2.49003e-05
  8  1.7196
  9  11.0942
  10  3.09387e-05
  11  0.000236764
  12  5.63433e-06
  13  10.0928
  14  0.000420044
  15  0.000609663
  16  1.65447e-05
  17  0.00199848
  18  0.00100279
  19  21.2985
  20  89.323
  21  0.000519233
  22  0.441049
  23  0.0010049
  24  0.000168403
  25  0.000489442
  26  0.213745
  27  0.230937
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  5.634e-06  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  2.911e-01  2.309e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.699e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/812730/likelihoodResults_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.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) = 5892.46866456
delta logL = -0.00338461050978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5892.46527988
delta logL = 6.21930666966e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5824       1.0000          .0000       10.000    
     3 'Normalizat'    1.6991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   5892.465     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      258 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.920        .85314E-02** at limit **
   2  Index         2.2293        6.9442        .50000        .19418E-07
   3  Normalizat    1.6990        .12719E-01    .20089E-03    .12167E-03
   4  Prefactor     .29106        .14137E-01    .49872E-03    .56260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2293
  Normalizat = 1.69901
  Prefactor  = 0.291055
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.465     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.12        .88042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2293        6.4588        .50000       -.58733    
   3  Normalizat    1.6990        .42832E-01    .80355E-05   -.72330    
   4  Prefactor     .29106        .47602E-01    .19949E-04   -1.2279    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.55177e-10
Minuit parameter uncertainties:
  1  6.10071e-05
  2  716.84
  3  0.0428325
  4  0.0476083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812730': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5892.46527748
delta logL = 2.46477702603e-06

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  6.101e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.229e+00  7.168e+02  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  2.911e-01  4.761e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.699e+00  4.283e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/812730/cmap_HighResolution_450316801_450576001_4FGL_J1018.4+3540_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-09-01 18:09:23.658092', job_id='812730', GAL2='0.29', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1630544963.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.29', dlogl='2.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='814' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:09:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 812730: <4FGL_J1018.4+3540_daily_bin814> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin814> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 17:55:49 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:55:50 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:55:50 2021
Terminated at Wed Sep  1 18:09:24 2021
Results reported at Wed Sep  1 18:09:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin814 154.607 35.6802 450316801 450576001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   801.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

