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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin848
RA = 154.607, Dec = 35.6802
tmin = 459129601, tmax = 459388801
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='812780', job_status='RUN', time_executed='2021-09-01 17:56:10.402272', time_epoch_executed='1630544170.4' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/812780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/812780/ft1_4FGL_J1018.4+3540_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/812780/ft2_4FGL_J1018.4+3540_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/812780/ft1_4FGL_J1018.4+3540_daily_bin848.fits outfile=/scratch/kocevski/812780/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin848.fits ra=154.607 dec=35.6802 rad=12.0 tmin=459129601.0 tmax=459388801.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.17
user 2.96
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/812780/ft1_filtered_4FGL_J1018.4+3540_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/812780/ft2_4FGL_J1018.4+3540_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/812780/ltcube_459129601_459388801_4FGL_J1018.4+3540_daily_bin848.fits outfile=/scratch/kocevski/812780/expmap_459129601_459388801_4FGL_J1018.4+3540_daily_bin848.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/812780/ltcube_459129601_459388801_4FGL_J1018.4+3540_daily_bin848.fits
.....................!
real 160.06
user 155.48
sys 3.76

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/812780/ft1_filtered_4FGL_J1018.4+3540_daily_bin848.fits scfile=/scratch/kocevski/812780/ft2_4FGL_J1018.4+3540_daily_bin848.fits outfile=/scratch/kocevski/812780/cmap_459129601_459388801_4FGL_J1018.4+3540_daily_bin848.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.49
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/812780/ft1_filtered_4FGL_J1018.4+3540_daily_bin848.fits scfile=/scratch/kocevski/812780/ft2_4FGL_J1018.4+3540_daily_bin848.fits outfile=/scratch/kocevski/812780/cmap_HighResolution_459129601_459388801_4FGL_J1018.4+3540_daily_bin848.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.50
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    29.642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.530       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.992       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.578       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3673       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.072       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.417       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.909       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3482       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .91248E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .40109E-01   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2234       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86937       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=   6207.788     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3404 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1475       -.36670E-07** at limit **
   2  norm          29.629        24.437       -.21154E-06    .47786E-05
   3  Prefactor     75.508        41.915       -.12808E-05    .14620E-04
   4  Prefactor     15.576        42.704        .47552E-05    .22394E-04
   5  Prefactor     43.954        52.058       -.12902E-04    .85521E-05
   6  Prefactor     9.8927        9.3529       -.32173E-05    .11853E-04
   7  Prefactor     10.579        8.9033       -.29674E-05    .21595E-04
   8  Prefactor     .10000E-03    1.3791        .97183E-08** at limit **
   9  norm          .10000E-03    3.6723        .43556E-07** at limit **
  10  Prefactor     .10000E-03    2.1672       -.31222E-07** at limit **
  11  Prefactor     .10000E-03    15.190       -.10198E-06** at limit **
  12  Prefactor     1.3648        .79222        .59527E-07   -.72021E-03
  13  norm          .10000E-03    11.500        .26512E-07** at limit **
  14  Prefactor     80.085        65.520        .25795E-05    .16227E-04
  15  Prefactor     .10000E-03    21.714       -.39610E-07** at limit **
  16  Prefactor     .10000E-03    4.5319       -.14901E-06** at limit **
  17  Prefactor     4.8386        8.0572       -.19098E-05    .24753E-04
  18  Prefactor     30.417        41.746       -.49531E-06    .23370E-04
  19  Prefactor     .10000E-03    97.396       -.18396E-05** at limit **
  20  Prefactor     67.908        81.311       -.15208E-05    .64294E-05
  21  Prefactor     .10000E-03    13.547       -.85077E-07** at limit **
  22  norm          2.3484        .46132       -.16332E-07    .99647E-03
  23  Prefactor     .10000E-03    37.781        .10541E-06** at limit **
  24  Prefactor     .10001E-03    19.046       -.21301E-06** at limit **
  25  norm          .10002E-03    14.783       -.77067E-06** at limit **
  26  Normalizat    1.2227        .19032        .24131E-05    .20468E-04
  27  Prefactor     .87018        .21123        .84276E-06    .14965E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 29.6288
  Prefactor  = 75.5083
  Prefactor  = 15.5759
  Prefactor  = 43.9541
  Prefactor  = 9.89274
  Prefactor  = 10.5788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36477
  norm       = 0.0001
  Prefactor  = 80.0848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.83859
  Prefactor  = 30.4168
  Prefactor  = 0.0001
  Prefactor  = 67.9079
  Prefactor  = 0.0001
  norm       = 2.34841
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.000100016
  Normalizat = 1.22274
  Prefactor  = 0.870184
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.788     FROM HESSE     STATUS=OK           496 CALLS     3900 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.629        24.486        .73589E-04   -1.4619    
   3  Prefactor     75.508        41.952        .46209E-04   -1.3968    
   4  Prefactor     15.576        42.741        .10164E-03   -1.4918    
   5  Prefactor     43.954        52.057        .60445E-04   -1.4381    
   6  Prefactor     9.8927        9.3603        .12739E-03   -1.5079    
   7  Prefactor     10.579        8.9040        .12319E-03   -1.5057    
   8  Prefactor     .10000E-03    1.4314        .18053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.6843        .14744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1999        .11320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3648        6.1691        .17426E-02   -1.5474    
  13  norm          .10000E-03    11.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     80.085        65.674        .44882E-04   -1.3916    
  15  Prefactor     .10000E-03    21.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6214        .16338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8386        8.2114        .18305E-03   -1.5268    
  18  Prefactor     30.417        41.672        .72647E-04   -1.4604    
  19  Prefactor     .10000E-03    100.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.908        81.396        .48707E-04   -1.4058    
  21  Prefactor     .10000E-03    13.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3484        .43663        .21527E-04   -1.5401    
  23  Prefactor     .10000E-03    38.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    144.68        .62456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10002E-03    15.945        .87002E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2227        .23440        .24139E-03   -.85903    
  27  Prefactor     .87018        .25433        .32597E-03   -.97191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33079e-09
Minuit parameter uncertainties:
  1  1.83331e-06
  2  24.4942
  3  41.9683
  4  42.8255
  5  52.1113
  6  9.36167
  7  8.90509
  8  1.25473e-06
  9  4.17566e-07
  10  1.6941e-06
  11  8.70708e-06
  12  5.80404
  13  3.5514e-06
  14  65.7331
  15  4.20131e-05
  16  9.60303e-06
  17  8.21335
  18  41.7115
  19  0.000421789
  20  81.5299
  21  4.55427e-05
  22  0.436631
  23  8.71125e-05
  24  0.00263675
  25  0.00101356
  26  0.234599
  27  0.25468
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.365e+00  5.804e+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:  8.702e-01  2.547e-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.223e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/812780/likelihoodResults_459129601_459388801_4FGL_J1018.4+3540_daily_bin848.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) = 6207.55287778
delta logL = 0.234639056491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6207.51385523
delta logL = 0.273661597862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84097       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0064       1.0000          .0000       10.000    
     3 'Normalizat'    1.1703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90962       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=   6207.514     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83766        17.182        .12592E-01    .96377E-03
   2  Index         4.0082        3.4203        .20570        .67759E-04
   3  Normalizat    1.1703        .34543E-01    .55634E-01   -.55746E-04
   4  Prefactor     .90967        .40364E-01    .72232E-01    .87406E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.837664
  Index      = 4.00822
  Normalizat = 1.17031
  Prefactor  = 0.909671
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.514     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83766        67.283        .89795E-04   -1.5525    
   2  Index         4.0082        5.9382        .83648E-02   -.19968    
   3  Normalizat    1.1703        .22181        .24601E-03   -.87525    
   4  Prefactor     .90967        .25612        .31960E-03   -.95804    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.28351e-07
Minuit parameter uncertainties:
  1  15.0313
  2  11.4234
  3  0.221984
  4  0.256455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/812780': 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) = 6207.51385429
delta logL = 0.273662537612

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  8.377e-01  1.503e+01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  4.008e+00  1.142e+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:  9.097e-01  2.565e-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.170e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/812780/cmap_HighResolution_459129601_459388801_4FGL_J1018.4+3540_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-01 18:07:06.890620', job_id='812780', GAL2='0.91', fit_tolerance='1e-08', EG2='1.17', EG='1.22', time_epoch_completed='1630544826.89', return_code2='102', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.74e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='848' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 812780: <4FGL_J1018.4+3540_daily_bin848> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin848 154.607 35.6802 459129601 459388801 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            675 sec.

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

