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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1449
RA = 154.607, Dec = 35.6802
tmin = 614908801, tmax = 615168001
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='815709', job_status='RUN', time_executed='2021-09-01 18:07:54.679803', time_epoch_executed='1630544874.68' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815709/ft1_4FGL_J1018.4+3540_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815709/ft2_4FGL_J1018.4+3540_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815709/ft1_4FGL_J1018.4+3540_daily_bin1449.fits outfile=/scratch/kocevski/815709/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1449.fits ra=154.607 dec=35.6802 rad=12.0 tmin=614908801.0 tmax=615168001.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.70
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815709/ft1_filtered_4FGL_J1018.4+3540_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/815709/ft2_4FGL_J1018.4+3540_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/815709/ltcube_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.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/815709/ft2_4FGL_J1018.4+3540_daily_bin1449.fits
.....................!
real 15.65
user 15.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815709/ft1_filtered_4FGL_J1018.4+3540_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/815709/ft2_4FGL_J1018.4+3540_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/815709/ltcube_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.fits outfile=/scratch/kocevski/815709/expmap_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.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/815709/ltcube_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.fits
.....................!
real 191.51
user 185.86
sys 4.04

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/815709/ft1_filtered_4FGL_J1018.4+3540_daily_bin1449.fits scfile=/scratch/kocevski/815709/ft2_4FGL_J1018.4+3540_daily_bin1449.fits outfile=/scratch/kocevski/815709/cmap_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.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.53
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815709/ft1_filtered_4FGL_J1018.4+3540_daily_bin1449.fits scfile=/scratch/kocevski/815709/ft2_4FGL_J1018.4+3540_daily_bin1449.fits outfile=/scratch/kocevski/815709/cmap_HighResolution_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.368       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.584       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    26.232       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1638       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12281E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.875       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3388       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15001E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2910       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.368       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67479       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=   5542.315     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3294 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.8431        .94469E-06** at limit **
   2  norm          .10000E-03    5.7573        .19669E-06** at limit **
   3  Prefactor     .10000E-03    8.7976       -.85762E-06** at limit **
   4  Prefactor     11.352        28.766        .98581E-06    .36448E-04
   5  Prefactor     34.585        35.094       -.40170E-06   -.10591E-03
   6  Prefactor     3.6439        6.0776        .15017E-06    .12364E-02
   7  Prefactor     .10000E-03    2.4045        .24940E-07** at limit **
   8  Prefactor     .10000E-03    .65268        .62697E-08** at limit **
   9  norm          26.232        13.992        .48988E-07   -.30751E-05
  10  Prefactor     4.1649        4.6609       -.66840E-07   -.20246E-03
  11  Prefactor     .10000E-03    111.83        .22841E-05** at limit **
  12  Prefactor     .10000E-03    2.6549        .15918E-06** at limit **
  13  norm          11.868        13.333       -.10362E-08   -.27636E-03
  14  Prefactor     10.750        70.557        .26591E-05    .43721E-04
  15  Prefactor     7.4249        21.794       -.43326E-05   -.36341E-03
  16  Prefactor     .10000E-03    1.9757        .95587E-07** at limit **
  17  Prefactor     .10005E-03    17.103        .52940E-05** at limit **
  18  Prefactor     .10000E-03    22.705        .12188E-05** at limit **
  19  Prefactor     .10000E-03    7.5642        .41052E-06** at limit **
  20  Prefactor     .10000E-03    41.984       -.78134E-06** at limit **
  21  Prefactor     .10000E-03    6.0894        .80007E-07** at limit **
  22  norm          1.2911        .34737       -.38762E-09   -.63685E-03
  23  Prefactor     16.369        16.313       -.14010E-07   -.47589E-04
  24  Prefactor     .10000E-03    9.6744        .13874E-06** at limit **
  25  norm          .10000E-03    5.9337       -.27428E-06** at limit **
  26  Normalizat    1.2620        .18007       -.36519E-06   -.46789E-03
  27  Prefactor     .67487        .19847       -.13228E-06   -.28892E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.3523
  Prefactor  = 34.5852
  Prefactor  = 3.64395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.2324
  Prefactor  = 4.16491
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 11.868
  Prefactor  = 10.7497
  Prefactor  = 7.42485
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.29108
  Prefactor  = 16.3692
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.26198
  Prefactor  = 0.674871
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.315     FROM HESSE     STATUS=OK           482 CALLS     3776 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.246        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.7601        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.352        28.909        .11882E-03   -1.5034    
   5  Prefactor     34.585        35.166        .68143E-04   -1.4531    
   6  Prefactor     3.6439        6.7965        .10581E-02   -1.5326    
   7  Prefactor     .10000E-03    2.4061        .11274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .65495        .58725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.232        14.022        .78216E-04   -1.4683    
  10  Prefactor     4.1649        4.6762        .15874E-03   -1.5300    
  11  Prefactor     .10000E-03    113.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6696        .11818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.868        13.318        .11625E-03   -1.5019    
  14  Prefactor     10.750        71.612        .12214E-03   -1.5052    
  15  Prefactor     7.4249        22.846        .14806E-03   -1.5163    
  16  Prefactor     .10000E-03    1.9912        .10213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    21.662        .24950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.1060        .17943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2911        .34895        .21293E-04   -1.5481    
  23  Prefactor     16.369        16.363        .98998E-04   -1.4899    
  24  Prefactor     .10000E-03    9.6938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.9488        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2620        .21500        .21384E-03   -.84709    
  27  Prefactor     .67487        .23271        .32604E-03   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35637e-09
Minuit parameter uncertainties:
  1  0.000129741
  2  2.45861e-05
  3  0.000153664
  4  28.945
  5  35.1873
  6  6.79799
  7  2.48978e-06
  8  5.35125e-07
  9  14.024
  10  4.67662
  11  0.0014036
  12  5.81781e-06
  13  13.3217
  14  55.587
  15  22.873
  16  5.15642e-06
  17  0.0020262
  18  0.000336218
  19  6.75837e-05
  20  0.000301476
  21  1.2441e-05
  22  0.348946
  23  16.367
  24  2.25341e-05
  25  4.03343e-05
  26  0.215151
  27  0.233043
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  5.818e-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:  6.749e-01  2.330e-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.262e+00  2.152e-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: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815709/likelihoodResults_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.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) = 5542.31697907
delta logL = -0.0017798105664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5542.31519932
delta logL = -5.27670636075e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5950       1.0000          .0000       10.000    
     3 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67491       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5542.315     FROM MIGRAD    STATUS=FAILED        87 CALLS      241 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    206.56        .11828E-02** at limit **
   2  Index         2.6670        5.9499        .50000       -.13755E-04
   3  Normalizat    1.2620        .41918E-01    .21384E-03   -.37012E-04
   4  Prefactor     .67487        .48373E-01    .32604E-03   -.65553E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5542.315     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      382 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    206.56        .25505E-03** at limit **
   2  Index         2.6670        5.9499        .62316E-04   -.13755E-04
   3  Normalizat    1.2620        .41918E-01    .15299E-05   -.37012E-04
   4  Prefactor     .67487        .48373E-01    .19072E-05   -.65553E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5542.315     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      420 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    437.92        .23657E-03** at limit **
   2  Index         2.9972        5.9669        .50000        .17601E-06
   3  Normalizat    1.2620        .73528E-01    .42769E-04    .80171E-04
   4  Prefactor     .67487        .84104E-01    .13042E-04    .35566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.99723
  Normalizat = 1.26198
  Prefactor  = 0.674871
 **********
 **   18 **HESSE 
 **********

 FCN=   5542.315     FROM HESSE     STATUS=OK            29 CALLS      449 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4107        .47313E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9972        8.4998        .50000       -.41212    
   3  Normalizat    1.2620        .19973        .85538E-05   -.84709    
   4  Prefactor     .67487        .23031        .26083E-05   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15175e-11
Minuit parameter uncertainties:
  1  4.69805e-05
  2  163.794
  3  0.199851
  4  0.230637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815709': 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) = 5542.31519849
delta logL = 7.70543010731e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  4.698e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.997e+00  1.638e+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:  6.749e-01  2.306e-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.262e+00  1.999e-01  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/815709/cmap_HighResolution_614908801_615168001_4FGL_J1018.4+3540_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-09-01 18:20:40.709486', job_id='815709', GAL2='0.67', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630545640.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='7.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1449' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:20:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 815709: <4FGL_J1018.4+3540_daily_bin1449> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1449> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 18:05:48 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:05: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 18:05:50 2021
Terminated at Wed Sep  1 18:20:41 2021
Results reported at Wed Sep  1 18:20:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1449 154.607 35.6802 614908801 615168001 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 :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

