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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1518
RA = 154.607, Dec = 35.6802
tmin = 632793601, tmax = 633052801
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='816814', job_status='RUN', time_executed='2021-09-01 18:12:32.594319', time_epoch_executed='1630545152.59' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816814/ft1_4FGL_J1018.4+3540_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816814/ft2_4FGL_J1018.4+3540_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816814/ft1_4FGL_J1018.4+3540_daily_bin1518.fits outfile=/scratch/kocevski/816814/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1518.fits ra=154.607 dec=35.6802 rad=12.0 tmin=632793601.0 tmax=633052801.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816814/ft2_4FGL_J1018.4+3540_daily_bin1518.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/816814/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1518.fits evtable="EVENTS" outfile="/scratch/kocevski/816814/ft1_filtered_4FGL_J1018.4+3540_daily_bin1518.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.57
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816814/ft1_filtered_4FGL_J1018.4+3540_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/816814/ft2_4FGL_J1018.4+3540_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/816814/ltcube_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.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/816814/ft2_4FGL_J1018.4+3540_daily_bin1518.fits
.....................!
real 15.74
user 15.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816814/ft1_filtered_4FGL_J1018.4+3540_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/816814/ft2_4FGL_J1018.4+3540_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/816814/ltcube_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.fits outfile=/scratch/kocevski/816814/expmap_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.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/816814/ltcube_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.fits
.....................!
real 191.83
user 187.21
sys 3.96

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/816814/ft1_filtered_4FGL_J1018.4+3540_daily_bin1518.fits scfile=/scratch/kocevski/816814/ft2_4FGL_J1018.4+3540_daily_bin1518.fits outfile=/scratch/kocevski/816814/cmap_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816814/ft1_filtered_4FGL_J1018.4+3540_daily_bin1518.fits scfile=/scratch/kocevski/816814/ft2_4FGL_J1018.4+3540_daily_bin1518.fits outfile=/scratch/kocevski/816814/cmap_HighResolution_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.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.56
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7794       1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92024E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7941       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7826       1.0000         .10000E-03   10000.    
     9 'norm      '    12.581       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3146       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73458       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7425       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .85524       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9299       1.0000         .10000E-03   10000.    
    22 'norm      '    .42595       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.858       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.129       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4554       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .47735       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=   5926.689     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3406 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7781        7.1713        .81232E-06    .41333E-04
   2  norm          .10000E-03    11.312       -.27933E-06** at limit **
   3  Prefactor     .10000E-03    28.376       -.43627E-07** at limit **
   4  Prefactor     .10300E-03    25.160       -.10184E-05** at limit **
   5  Prefactor     .10000E-03    18.737       -.51274E-07** at limit **
   6  Prefactor     1.7936        4.2035        .58041E-06    .26793E-04
   7  Prefactor     .10000E-03    12.668       -.23945E-06** at limit **
   8  Prefactor     1.7821        1.8677        .62776E-07   -.74668E-05
   9  norm          12.577        10.225        .15153E-06    .22180E-04
  10  Prefactor     5.3140        4.4528       -.66245E-07   -.10713E-03
  11  Prefactor     .43695        28.160        .12143E-05   -.89615E-04
  12  Prefactor     3.7416        5.5120        .71599E-07   -.15832E-03
  13  norm          .10000E-03    4.7556       -.82300E-07** at limit **
  14  Prefactor     56.513        56.189       -.86004E-08   -.22602E-04
  15  Prefactor     .10000E-03    14.952       -.32113E-06** at limit **
  16  Prefactor     .10000E-03    4.4936       -.13644E-06** at limit **
  17  Prefactor     .85553        6.6091        .34940E-05   -.44630E-05
  18  Prefactor     .10000E-03    11.508        .20772E-06** at limit **
  19  Prefactor     64.126        34.277        .34318E-06    .17234E-03
  20  Prefactor     .10000E-03    33.008       -.17335E-07** at limit **
  21  Prefactor     8.9256        13.447        .20387E-06   -.34865E-04
  22  norm          .42592        .23388        .16933E-07   -.12947E-03
  23  Prefactor     10.855        13.716       -.70797E-07   -.63349E-04
  24  Prefactor     .10000E-03    8.3285       -.76935E-07** at limit **
  25  norm          13.125        17.357        .26387E-06    .52310E-04
  26  Normalizat    1.4558        .18531       -.54642E-06   -.12273E-03
  27  Prefactor     .47708        .20631       -.48312E-06   -.86089E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77811
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102996
  Prefactor  = 0.0001
  Prefactor  = 1.79359
  Prefactor  = 0.0001
  Prefactor  = 1.78213
  norm       = 12.5774
  Prefactor  = 5.314
  Prefactor  = 0.436946
  Prefactor  = 3.7416
  norm       = 0.0001
  Prefactor  = 56.5135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.855529
  Prefactor  = 0.0001
  Prefactor  = 64.1261
  Prefactor  = 0.0001
  Prefactor  = 8.92561
  norm       = 0.425922
  Prefactor  = 10.8553
  Prefactor  = 0.0001
  norm       = 13.1248
  Normalizat = 1.45584
  Prefactor  = 0.477077
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.689     FROM HESSE     STATUS=OK           504 CALLS     3910 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7781        7.1650        .24409E-03   -1.5375    
   2  norm          .10000E-03    11.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10300E-03    29.001        .10290       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7936        4.1720        .23466E-03   -1.5440    
   7  Prefactor     .10000E-03    12.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7821        1.8595        .10360E-03   -1.5441    
   9  norm          12.577        10.215        .11294E-03   -1.4999    
  10  Prefactor     5.3140        4.4267        .13005E-03   -1.5247    
  11  Prefactor     .43695        39.300        .11000       -1.5576    
  12  Prefactor     3.7416        5.4477        .18835E-03   -1.5321    
  13  norm          .10000E-03    4.7695        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     56.513        56.188        .53353E-04   -1.4203    
  15  Prefactor     .10000E-03    15.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6940        .31819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .85553        6.6294        .36732E-03   -1.5523    
  18  Prefactor     .10000E-03    11.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     64.126        34.282        .50109E-04   -1.4105    
  20  Prefactor     .10000E-03    33.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.9256        13.440        .13413E-03   -1.5110    
  22  norm          .42592        .23114        .26199E-04   -1.5577    
  23  Prefactor     10.855        13.709        .12159E-03   -1.5049    
  24  Prefactor     .10000E-03    8.3401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.125        17.317        .11055E-03   -1.4983    
  26  Normalizat    1.4558        .21212        .20595E-03   -.79027    
  27  Prefactor     .47708        .22933        .38454E-03   -1.1304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56169e-10
Minuit parameter uncertainties:
  1  7.16721
  2  6.05712e-05
  3  1.60905e-05
  4  0.0186522
  5  1.73283e-07
  6  4.17266
  7  2.13079e-05
  8  1.85957
  9  10.2167
  10  4.42699
  11  8.29247
  12  5.44839
  13  6.84443e-06
  14  56.2403
  15  5.44724e-05
  16  5.01231e-06
  17  4.76349
  18  8.41582e-05
  19  34.2929
  20  2.49891e-06
  21  13.4445
  22  0.231138
  23  13.7125
  24  1.40579e-06
  25  17.3239
  26  0.212247
  27  0.229778
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.742e+00  5.448e+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:  4.771e-01  2.298e-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.456e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816814/likelihoodResults_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.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) = 5926.17777808
delta logL = 0.511250058078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5926.01573226
delta logL = 0.673295879573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57308E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3512       1.0000          .0000       10.000    
     3 'Normalizat'    1.3865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54157       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=   5926.016     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      349 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54200E-02    .61781E-01    .95041E-03    .11567E-01
   2  Index         7.3847        2.9184        .16913        .11091E-03
   3  Normalizat    1.3864        .40497E-01    .47492E-01   -.70420E-04
   4  Prefactor     .54164        .45954E-01    .81949E-01   -.69729E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00542002
  Index      = 7.3847
  Normalizat = 1.38644
  Prefactor  = 0.541639
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.016     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      382 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54200E-02    .16598        .43602E-04   -1.5693    
   2  Index         7.3847        8.2189        .63695E-02    .49717    
   3  Normalizat    1.3864        .15252        .20994E-03   -.81022    
   4  Prefactor     .54164        .16918        .36299E-03   -1.1010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13741e-10
Minuit parameter uncertainties:
  1  0.0594323
  2  6.3388
  3  0.152567
  4  0.169337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816814': 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) = 5926.01571732
delta logL = 0.673310815719

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.420e-03  5.943e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  7.385e+00  6.339e+00  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:  5.416e-01  1.693e-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.386e+00  1.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 154.607 35.680
Photon Index (Free Index): 7.38 +/- 6.34
Photon Flux (Free Index): 9.23e-08 +/- 6.76e-08
Energy Flux (Free Index): 1.09e-05 +/- 8.30e-06

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/816814/cmap_HighResolution_632793601_633052801_4FGL_J1018.4+3540_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.50e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='6.73e-01', photon_flux2='9.23e-08', job_status='DONE', time_completed='2021-09-01 18:26:03.008445', photon_index_error2='6.34', photon_index2='7.38', ts='0.71', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='8.30e-06', EG='1.46', time_epoch_completed='1630545963.01', return_code='0', job_id='816814', GAL2='0.54', EG2='1.39', return_code2='102', photon_flux_error2='6.76e-08', ts2='2.21', photon_index='2.59' WHERE bin_id='1518' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 816814: <4FGL_J1018.4+3540_daily_bin1518> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1518> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:18 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:10:20 2021
Terminated at Wed Sep  1 18:26:03 2021
Results reported at Wed Sep  1 18:26:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1518 154.607 35.6802 632793601 633052801 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 :                                   808.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

