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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin756
RA = 154.607, Dec = 35.6802
tmin = 435283201, tmax = 435542401
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='812646', job_status='RUN', time_executed='2021-09-01 17:59:04.368409', time_epoch_executed='1630544344.37' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812646/ft1_4FGL_J1018.4+3540_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812646/ft1_4FGL_J1018.4+3540_daily_bin756.fits outfile=/scratch/kocevski/812646/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin756.fits ra=154.607 dec=35.6802 rad=12.0 tmin=435283201.0 tmax=435542401.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 5.20
user 4.89
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.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/812646/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/812646/ft1_filtered_4FGL_J1018.4+3540_daily_bin756.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/812646/ft1_filtered_4FGL_J1018.4+3540_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/812646/ltcube_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.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/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits
.....................!
real 14.05
user 13.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812646/ft1_filtered_4FGL_J1018.4+3540_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/812646/ltcube_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.fits outfile=/scratch/kocevski/812646/expmap_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.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/812646/ltcube_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.fits
.....................!
real 191.73
user 186.35
sys 4.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 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/812646/ft1_filtered_4FGL_J1018.4+3540_daily_bin756.fits scfile=/scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits outfile=/scratch/kocevski/812646/cmap_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812646/ft1_filtered_4FGL_J1018.4+3540_daily_bin756.fits scfile=/scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits outfile=/scratch/kocevski/812646/cmap_HighResolution_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/812646/ft1_filtered_4FGL_J1018.4+3540_daily_bin756.fits', '/scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits', expMap='/scratch/kocevski/812646/expmap_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.fits', expCube='/scratch/kocevski/812646/ltcube_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/812646/Model_4FGL_J1018.4+3540_daily_bin756.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/812646/ft1_filtered_4FGL_J1018.4+3540_daily_bin756.fits
Spacecraft file(s): /scratch/kocevski/812646/ft2_4FGL_J1018.4+3540_daily_bin756.fits
Exposure map: /scratch/kocevski/812646/expmap_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.fits
Exposure cube: /scratch/kocevski/812646/ltcube_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/812646/Model_4FGL_J1018.4+3540_daily_bin756.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) = 4914.44602595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.723       1.0000         .10000E-03   10000.    
     2 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8396       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3576       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12554E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3086       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.443       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2157       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5813       1.0000         .10000E-03   10000.    
    11 'Prefactor '    117.94       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.478       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11610E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.562       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.294       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42692E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.624       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6886       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .60588       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2484       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.

 FCN=   4914.414     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3309 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.730        13.112        .26141E-06    .43819E-04
   2  norm          .10000E-03    11.877        .66953E-06** at limit **
   3  Prefactor     7.8416        30.513       -.99153E-06    .58511E-05
   4  Prefactor     2.3638        47.843       -.12728E-04   -.56273E-04
   5  Prefactor     .10000E-03    45.404       -.14043E-05** at limit **
   6  Prefactor     2.3149        9.0706       -.52782E-05   -.32420E-03
   7  Prefactor     16.445        12.080       -.34197E-06    .27135E-04
   8  Prefactor     4.2169        2.8646       -.81567E-07    .20430E-04
   9  norm          .10000E-03    3.3185       -.71077E-07** at limit **
  10  Prefactor     2.5878        5.8522       -.15123E-05   -.58500E-03
  11  Prefactor     117.91        46.641       -.89271E-05   -.60000E-04
  12  Prefactor     12.476        7.1950       -.27975E-07   -.81443E-04
  13  norm          .10000E-03    5.4564        .62879E-07** at limit **
  14  Prefactor     .10000E-03    27.800        .79857E-06** at limit **
  15  Prefactor     26.530        28.772        .41554E-05   -.13516E-03
  16  Prefactor     2.2640        4.5923        .23420E-06   -.10052E-02
  17  Prefactor     .10000E-03    3.6686       -.38285E-06** at limit **
  18  Prefactor     .10001E-03    156.65        .62459E-04** at limit **
  19  Prefactor     16.318        25.054       -.11088E-04   -.92517E-05
  20  Prefactor     .10000E-03    234.53       -.42482E-04** at limit **
  21  Prefactor     29.630        20.126       -.35684E-05    .78964E-05
  22  norm          2.6884        .50383       -.30991E-07   -.66761E-04
  23  Prefactor     .10000E-03    12.528       -.46503E-06** at limit **
  24  Prefactor     .10000E-03    6.4375       -.84096E-07** at limit **
  25  norm          .10000E-03    5.3704       -.62580E-07** at limit **
  26  Normalizat    .60545        .20495        .66317E-05   -.12310E-03
  27  Prefactor     1.2485        .22821       -.38944E-06    .72528E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7295
  norm       = 0.0001
  Prefactor  = 7.84157
  Prefactor  = 2.36379
  Prefactor  = 0.000100001
  Prefactor  = 2.31488
  Prefactor  = 16.4447
  Prefactor  = 4.21689
  norm       = 0.0001
  Prefactor  = 2.58783
  Prefactor  = 117.913
  Prefactor  = 12.4757
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5302
  Prefactor  = 2.26396
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 16.3183
  Prefactor  = 0.0001
  Prefactor  = 29.6303
  norm       = 2.68844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.605448
  Prefactor  = 1.24852
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.414     FROM HESSE     STATUS=OK           488 CALLS     3797 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.730        13.120        .70048E-04   -1.4563    
   2  norm          .10000E-03    11.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8416        30.444        .14321E-03   -1.5148    
   4  Prefactor     2.3638        48.401        .26692E-03   -1.5400    
   5  Prefactor     .10000E-03    45.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3149        9.1072        .27005E-03   -1.5404    
   7  Prefactor     16.445        12.062        .98772E-04   -1.4897    
   8  Prefactor     4.2169        2.8553        .92237E-04   -1.5297    
   9  norm          .10000E-03    3.3279        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5878        5.7777        .20573E-03   -1.5386    
  11  Prefactor     117.91        46.568        .18526E-03   -1.3532    
  12  Prefactor     12.476        7.1073        .11340E-03   -1.5001    
  13  norm          .10000E-03    5.4667        .15985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.530        28.619        .77729E-04   -1.4677    
  16  Prefactor     2.2640        4.5631        .20020E-03   -1.5407    
  17  Prefactor     .10000E-03    3.7080        .13079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    155.91        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.318        25.079        .99223E-04   -1.4900    
  20  Prefactor     .10000E-03    237.17        .19412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.630        20.153        .73612E-04   -1.4619    
  22  norm          2.6884        .50435        .20806E-04   -1.5380    
  23  Prefactor     .10000E-03    12.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4393        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.3747        .15867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .60545        .24043        .29746E-03   -1.0775    
  27  Prefactor     1.2485        .27060        .26217E-03   -.84851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10583e-09
Minuit parameter uncertainties:
  1  13.1213
  2  6.83664e-05
  3  30.5044
  4  21.4118
  5  0.000412861
  6  9.11265
  7  12.0639
  8  2.85539
  9  1.13639e-06
  10  5.77892
  11  46.582
  12  7.10775
  13  1.11679e-05
  14  1.46632e-05
  15  28.6335
  16  4.56384
  17  5.22846e-05
  18  0.00287272
  19  25.0955
  20  1.64489e-05
  21  20.1573
  22  0.50435
  23  1.76605e-05
  24  2.86898e-06
  25  6.26478e-07
  26  0.240847
  27  0.270904
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.248e+01  7.108e+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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.249e+00  2.709e-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:  6.054e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.08
Ra Dec: 154.607 35.680
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.82e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.54e-05

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) = 4914.11152566
delta logL = 0.302139755118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4914.11139792
delta logL = 0.302267495284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.783       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1915       1.0000          .0000       10.000    
     3 'Normalizat'    .64372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2152       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=   4914.111     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.786        192.46        .26043E-02    .42737E-04
   2  Index         2.1917        5.8832        .17269        .40411E-04
   3  Normalizat    .64375        .31452        .65346E-01    .54551E-04
   4  Prefactor     1.2151        .30262        .59952E-01   -.24104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7855
  Index      = 2.1917
  Normalizat = 0.643749
  Prefactor  = 1.21515
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.111     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.786        7.7712        .10417E-03   -1.4939    
   2  Index         2.1917        .48040        .65758E-02   -.59639    
   3  Normalizat    .64375        .22161        .28915E-03   -1.0616    
   4  Prefactor     1.2151        .26770        .26512E-03   -.85866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26812e-11
Minuit parameter uncertainties:
  1  7.7717
  2  0.481485
  3  0.221916
  4  0.268001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812646': 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) = 4914.11139774
delta logL = 0.302267672842

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.479e+01  7.772e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.192e+00  4.815e-01  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:  1.215e+00  2.680e-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:  6.437e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.63
Ra Dec: 154.607 35.680
Photon Index (Free Index): 2.19 +/- 0.48
Photon Flux (Free Index): 7.64e-08 +/- 5.22e-08
Energy Flux (Free Index): 3.49e-05 +/- 2.43e-05

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/812646/cmap_HighResolution_435283201_435542401_4FGL_J1018.4+3540_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.49e-05', photon_flux_error='5.82e-08', dlogl='3.02e-01', energy_flux='2.71e-05', photon_flux2='7.64e-08', job_status='DONE', time_completed='2021-09-01 18:09:54.379608', photon_index_error2='0.48', photon_index2='2.19', ts='8.08', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='0.61', time_epoch_completed='1630544994.38', return_code='0', job_id='812646', GAL2='1.22', EG2='0.64', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='5.22e-08', ts2='8.63', photon_index='2.59' WHERE bin_id='756' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:09:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 812646: <4FGL_J1018.4+3540_daily_bin756> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin756 154.607 35.6802 435283201 435542401 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 :                                   648.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

