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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1606
RA = 154.607, Dec = 35.6802
tmin = 655603201, tmax = 655862401
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='294386', job_status='RUN', time_executed='2021-12-07 20:59:12.683746', time_epoch_executed='1638939552.68' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294386/ft1_4FGL_J1018.4+3540_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294386/ft2_4FGL_J1018.4+3540_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294386/ft1_4FGL_J1018.4+3540_daily_bin1606.fits outfile=/scratch/kocevski/294386/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1606.fits ra=154.607 dec=35.6802 rad=12.0 tmin=655603201.0 tmax=655862401.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.52
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294386/ft1_filtered_4FGL_J1018.4+3540_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/294386/ft2_4FGL_J1018.4+3540_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/294386/ltcube_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.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/294386/ft2_4FGL_J1018.4+3540_daily_bin1606.fits
.....................!
real 11.21
user 10.90
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294386/ft1_filtered_4FGL_J1018.4+3540_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/294386/ft2_4FGL_J1018.4+3540_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/294386/ltcube_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.fits outfile=/scratch/kocevski/294386/expmap_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.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/294386/ltcube_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.fits
.....................!
real 157.68
user 153.09
sys 4.31

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/294386/ft1_filtered_4FGL_J1018.4+3540_daily_bin1606.fits scfile=/scratch/kocevski/294386/ft2_4FGL_J1018.4+3540_daily_bin1606.fits outfile=/scratch/kocevski/294386/cmap_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294386/ft1_filtered_4FGL_J1018.4+3540_daily_bin1606.fits scfile=/scratch/kocevski/294386/ft2_4FGL_J1018.4+3540_daily_bin1606.fits outfile=/scratch/kocevski/294386/cmap_HighResolution_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.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.48
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5329       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0004       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9261       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5009       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35312E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.028       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4526       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.073       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7069       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.5187       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72745       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=   7211.648     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     2852 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4094        .94338E-07** at limit **
   2  norm          .10000E-03    4.7152       -.85122E-07** at limit **
   3  Prefactor     .10000E-03    7.1895        .37489E-05** at limit **
   4  Prefactor     .10000E-03    6.4936       -.39310E-05** at limit **
   5  Prefactor     6.5279        23.795        .58532E-06    .23304E-04
   6  Prefactor     1.0001        4.0824       -.22001E-06   -.18531E-04
   7  Prefactor     17.076        10.238       -.18798E-06    .20481E-04
   8  Prefactor     2.9257        2.7694       -.64710E-07   -.16862E-03
   9  norm          2.4999        7.8338        .12345E-06   -.10292E-03
  10  Prefactor     5.0037        3.0491        .83138E-06   -.34885E-02
  11  Prefactor     .10000E-03    27.707        .57987E-05** at limit **
  12  Prefactor     .10000E-03    3.7349       -.55259E-06** at limit **
  13  norm          .18685E-01    3.7011       -.21762E-06    .15426E-03
  14  Prefactor     .10000E-03    22.194       -.27659E-05** at limit **
  15  Prefactor     14.031        16.272       -.61547E-06   -.17864E-04
  16  Prefactor     .10004E-03    1.9124       -.81994E-06** at limit **
  17  Prefactor     .10000E-03    1.8460       -.66158E-07** at limit **
  18  Prefactor     .10000E-03    13.334        .40364E-05** at limit **
  19  Prefactor     7.4643        22.336       -.52290E-05   -.15001E-03
  20  Prefactor     .10000E-03    25.502       -.27284E-05** at limit **
  21  Prefactor     32.073        15.429        .10484E-06    .19124E-04
  22  norm          1.7069        .33002       -.69127E-08    .20775E-03
  23  Prefactor     .10000E-03    5.6257        .80773E-06** at limit **
  24  Prefactor     .10000E-03    3.6707       -.16006E-06** at limit **
  25  norm          5.5164        12.176        .15757E-05   -.64559E-03
  26  Normalizat    1.2611        .15480       -.10137E-06    .33569E-03
  27  Prefactor     .72735        .17889        .17953E-06    .16228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.52794
  Prefactor  = 1.00013
  Prefactor  = 17.0757
  Prefactor  = 2.92575
  norm       = 2.49992
  Prefactor  = 5.00372
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0186852
  Prefactor  = 0.000100001
  Prefactor  = 14.0308
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.46433
  Prefactor  = 0.000100001
  Prefactor  = 32.0725
  norm       = 1.70686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.51642
  Normalizat = 1.2611
  Prefactor  = 0.727354
 **********
 **   18 **HESSE 
 **********

 FCN=   7211.648     FROM HESSE     STATUS=OK           496 CALLS     3348 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4166        .12873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.7215        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5279        23.881        .15701E-03   -1.5197    
   6  Prefactor     1.0001        13.468        .31866E-02   -1.5508    
   7  Prefactor     17.076        10.268        .96921E-04   -1.4881    
   8  Prefactor     2.9257        2.7408        .12750E-03   -1.5366    
   9  norm          2.4999        7.8175        .25842E-03   -1.5392    
  10  Prefactor     5.0037        4.0643        .71744E-03   -1.5261    
  11  Prefactor     .10000E-03    28.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8563        .32029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18685E-01    3.8475        .56170E-01   -1.5681    
  14  Prefactor     .10000E-03    22.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.031        16.261        .10694E-03   -1.4959    
  16  Prefactor     .10004E-03    10.949        .21856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8577        .11258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4643        22.548        .14691E-03   -1.5161    
  20  Prefactor     .10000E-03    25.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.073        15.428        .70752E-04   -1.4575    
  22  norm          1.7069        .33038        .20699E-04   -1.5447    
  23  Prefactor     .10000E-03    5.6429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6722        .15890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.5164        13.105        .85515E-03   -1.5238    
  26  Normalizat    1.2611        .18295        .21473E-03   -.84735    
  27  Prefactor     .72735        .20925        .32298E-03   -1.0246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8994e-08
Minuit parameter uncertainties:
  1  1.68774e-06
  2  4.54626e-06
  3  0.000189197
  4  0.000191575
  5  23.9156
  6  7.34182
  7  10.2686
  8  2.7409
  9  7.82064
  10  4.06449
  11  0.000534157
  12  1.81375e-05
  13  0.534846
  14  0.000242981
  15  16.2659
  16  0.00136694
  17  9.60922e-07
  18  0.000283437
  19  22.5732
  20  0.00025879
  21  15.4304
  22  0.330378
  23  3.65279e-05
  24  5.77554e-06
  25  13.1123
  26  0.183045
  27  0.209481
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.814e-05  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:  7.274e-01  2.095e-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.261e+00  1.830e-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: 7.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/294386/likelihoodResults_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.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) = 7211.64884049
delta logL = -0.00123722346598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7211.64760333
delta logL = -5.7626493799e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6046       1.0000          .0000       10.000    
     3 'Normalizat'    1.2611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7211.648     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.2943        .32273E-03** at limit **
   2  Index         2.6195        6.3088        .50000       -.35244E-04
   3  Normalizat    1.2611        .17310        .21473E-03   -.29565E-03
   4  Prefactor     .72735        .20394        .32298E-03   -.32426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.6195
  Normalizat = 1.2611
  Prefactor  = 0.727352
 **********
 **   18 **HESSE 
 **********

 FCN=   7211.648     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.9333        .64546E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6195        6.3031        .50000       -.49621    
   3  Normalizat    1.2611        .17323        .42946E-04   -.84735    
   4  Prefactor     .72735        .20410        .12919E-04   -1.0246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92372e-09
Minuit parameter uncertainties:
  1  0.000286178
  2  4.40412
  3  0.173307
  4  0.204307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294386': 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) = 7211.64760304
delta logL = 2.31480953516e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.862e-04  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.620e+00  4.404e+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:  7.274e-01  2.043e-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.261e+00  1.733e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/294386/cmap_HighResolution_655603201_655862401_4FGL_J1018.4+3540_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-12-07 21:10:51.894800', job_id='294386', GAL2='0.73', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1638940251.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1606' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:10:51 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 294386: <4FGL_J1018.4+3540_daily_bin1606> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1606> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 20:55:12 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:55:34 2021
Terminated at Tue Dec  7 21:10:52 2021
Results reported at Tue Dec  7 21:10:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1606 154.607 35.6802 655603201 655862401 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 :                                   698.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            940 sec.

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

