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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1211
RA = 154.607, Dec = 35.6802
tmin = 553219201, tmax = 553478401
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='814281', job_status='RUN', time_executed='2021-09-01 18:02:58.844843', time_epoch_executed='1630544578.84' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814281/ft1_4FGL_J1018.4+3540_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814281/ft2_4FGL_J1018.4+3540_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814281/ft1_4FGL_J1018.4+3540_daily_bin1211.fits outfile=/scratch/kocevski/814281/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1211.fits ra=154.607 dec=35.6802 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.80
user 2.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/814281/ft2_4FGL_J1018.4+3540_daily_bin1211.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/814281/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/814281/ft1_filtered_4FGL_J1018.4+3540_daily_bin1211.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/814281/ft1_filtered_4FGL_J1018.4+3540_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/814281/ft2_4FGL_J1018.4+3540_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/814281/ltcube_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.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/814281/ft2_4FGL_J1018.4+3540_daily_bin1211.fits
.....................!
real 15.43
user 15.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814281/ft1_filtered_4FGL_J1018.4+3540_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/814281/ft2_4FGL_J1018.4+3540_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/814281/ltcube_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.fits outfile=/scratch/kocevski/814281/expmap_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.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/814281/ltcube_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.fits
.....................!
real 192.56
user 186.16
sys 5.92

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/814281/ft1_filtered_4FGL_J1018.4+3540_daily_bin1211.fits scfile=/scratch/kocevski/814281/ft2_4FGL_J1018.4+3540_daily_bin1211.fits outfile=/scratch/kocevski/814281/cmap_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814281/ft1_filtered_4FGL_J1018.4+3540_daily_bin1211.fits scfile=/scratch/kocevski/814281/ft2_4FGL_J1018.4+3540_daily_bin1211.fits outfile=/scratch/kocevski/814281/cmap_HighResolution_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.3410       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38175E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54919E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.943       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3998       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1611       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8939       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9339       1.0000         .10000E-03   10000.    
    13 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.588       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3490       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.310       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    78.690       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7066       1.0000         .10000E-03   10000.    
    22 'norm      '    .84534       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8532       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.8266       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1302       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85812       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=   5722.980     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3336 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.9735        .22155E-07** at limit **
   2  norm          7.3711        14.640       -.70096E-05    .28735E-03
   3  Prefactor     .10004E-03    196.76        .10547E-03** at limit **
   4  Prefactor     .10004E-03    13.602       -.60344E-05** at limit **
   5  Prefactor     32.017        44.095        .39452E-04    .24524E-03
   6  Prefactor     .10000E-03    3.4073        .15308E-06** at limit **
   7  Prefactor     9.3998        12.174        .97249E-07   -.90794E-04
   8  Prefactor     2.1594        3.2686       -.88272E-07   -.10624E-02
   9  norm          .10000E-03    3.3681        .22387E-06** at limit **
  10  Prefactor     3.4426        4.3830       -.19319E-05   -.48170E-03
  11  Prefactor     8.8850        22.043        .78428E-05   -.10582E-04
  12  Prefactor     3.9341        5.8251        .26786E-05   -.40985E-03
  13  norm          .10000E-03    21.992        .54020E-06** at limit **
  14  Prefactor     .10000E-03    13.004       -.43183E-06** at limit **
  15  Prefactor     .10000E-03    50.847       -.43476E-05** at limit **
  16  Prefactor     15.589        6.4232       -.14718E-05   -.11357E-03
  17  Prefactor     9.3505        6.2948        .19597E-05   -.34900E-04
  18  Prefactor     32.303        41.594       -.77287E-06   -.76134E-05
  19  Prefactor     .10000E-03    18.338        .13295E-05** at limit **
  20  Prefactor     78.687        67.659       -.15054E-05   -.46211E-05
  21  Prefactor     9.7066        8.2133        .30702E-06    .12020E-05
  22  norm          .84537        .24980        .54376E-07   -.15765E-04
  23  Prefactor     4.8539        10.427        .81572E-06   -.11283E-03
  24  Prefactor     .10000E-03    5.1816       -.17866E-06** at limit **
  25  norm          7.8266        11.351        .53189E-06   -.64523E-04
  26  Normalizat    1.1301        .18574       -.24677E-05    .39088E-04
  27  Prefactor     .85819        .20554       -.11069E-05   -.21118E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.37106
  Prefactor  = 0.000100039
  Prefactor  = 0.000100043
  Prefactor  = 32.0166
  Prefactor  = 0.0001
  Prefactor  = 9.39978
  Prefactor  = 2.15936
  norm       = 0.0001
  Prefactor  = 3.44259
  Prefactor  = 8.885
  Prefactor  = 3.93411
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.5887
  Prefactor  = 9.35049
  Prefactor  = 32.3029
  Prefactor  = 0.0001
  Prefactor  = 78.6873
  Prefactor  = 9.70656
  norm       = 0.845375
  Prefactor  = 4.85389
  Prefactor  = 0.0001
  norm       = 7.82656
  Normalizat = 1.13013
  Prefactor  = 0.858191
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.980     FROM HESSE     STATUS=OK           500 CALLS     3836 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3711        14.637        .14803E-03   -1.5165    
   3  Prefactor     .10004E-03    200.27        .42570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    19.770        .10273       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.017        44.792        .70896E-04   -1.4576    
   6  Prefactor     .10000E-03    3.4198        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3998        12.174        .13071E-03   -1.5095    
   8  Prefactor     2.1594        3.2598        .15765E-03   -1.5414    
   9  norm          .10000E-03    3.3767        .13559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4426        4.3413        .15216E-03   -1.5337    
  11  Prefactor     8.8850        22.014        .13440E-03   -1.5112    
  12  Prefactor     3.9341        5.7536        .18651E-03   -1.5311    
  13  norm          .10000E-03    22.576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.589        6.4477        .10144E-03   -1.4918    
  17  Prefactor     9.3505        6.2865        .13107E-03   -1.5096    
  18  Prefactor     32.303        41.564        .70493E-04   -1.4571    
  19  Prefactor     .10000E-03    18.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     78.687        67.795        .45271E-04   -1.3932    
  21  Prefactor     9.7066        8.2154        .12862E-03   -1.5085    
  22  norm          .84537        .25028        .19709E-04   -1.5524    
  23  Prefactor     4.8539        10.391        .18260E-03   -1.5267    
  24  Prefactor     .10000E-03    5.1879        .16815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.8266        11.323        .14333E-03   -1.5148    
  26  Normalizat    1.1301        .22176        .23300E-03   -.88790    
  27  Prefactor     .85819        .24255        .31133E-03   -.97618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01026e-09
Minuit parameter uncertainties:
  1  4.36603e-05
  2  14.6441
  3  0.00560331
  4  0.00183437
  5  44.8388
  6  2.25356e-06
  7  12.1772
  8  3.26008
  9  6.21233e-06
  10  4.34167
  11  22.0343
  12  5.75441
  13  0.000105877
  14  5.65453e-06
  15  0.000379992
  16  6.44799
  17  6.28693
  18  41.601
  19  3.28739e-05
  20  67.8613
  21  8.21638
  22  0.250283
  23  10.3952
  24  1.74906e-06
  25  11.3263
  26  0.22194
  27  0.242857
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.934e+00  5.754e+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.582e-01  2.429e-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.130e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/814281/likelihoodResults_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.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) = 5722.88832589
delta logL = 0.0917322633513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5722.88779994
delta logL = 0.0922582166104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2179       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2212       1.0000          .0000       10.000    
     3 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84824       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5722.888     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      313 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2199        6.4415        .87987E-03   -.12688E-04
   2  Index         2.2211        .77699        .10329E-01    .26967E-05
   3  Normalizat    1.1389        .20461        .23219E-03   -.35693E-04
   4  Prefactor     .84840        .24096        .31285E-03   -.28381E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21994
  Index      = 2.2211
  Normalizat = 1.13895
  Prefactor  = 0.848405
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.888     FROM HESSE     STATUS=OK            27 CALLS      340 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2199        6.3719        .35195E-04   -1.5251    
   2  Index         2.2211        .76877        .41315E-03   -.58930    
   3  Normalizat    1.1389        .20479        .92878E-05   -.88511    
   4  Prefactor     .84840        .24112        .12514E-04   -.97968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82494e-12
Minuit parameter uncertainties:
  1  6.37274
  2  0.773224
  3  0.204934
  4  0.241421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814281': 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) = 5722.88779956
delta logL = 0.0922585952358

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  5.220e+00  6.373e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.221e+00  7.732e-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:  8.484e-01  2.414e-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.139e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
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/814281/cmap_HighResolution_553219201_553478401_4FGL_J1018.4+3540_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-01 18:16:03.464945', job_id='814281', GAL2='0.85', fit_tolerance='1e-08', EG2='1.14', EG='1.13', time_epoch_completed='1630545363.47', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.23e-02', ts2='0.93', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1211' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:16:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 814281: <4FGL_J1018.4+3540_daily_bin1211> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1211> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:41 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:42 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:00:42 2021
Terminated at Wed Sep  1 18:16:04 2021
Results reported at Wed Sep  1 18:16:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1211 154.607 35.6802 553219201 553478401 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 :                                   784.00 sec.
    Max Memory :                                 1190 MB
    Average Memory :                             301.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

