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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1222
RA = 154.607, Dec = 35.6802
tmin = 556070401, tmax = 556329601
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='815372', job_status='RUN', time_executed='2021-09-01 18:05:40.253425', time_epoch_executed='1630544740.25' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815372

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815372/ft1_4FGL_J1018.4+3540_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815372/ft1_4FGL_J1018.4+3540_daily_bin1222.fits outfile=/scratch/kocevski/815372/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1222.fits ra=154.607 dec=35.6802 rad=12.0 tmin=556070401.0 tmax=556329601.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.75
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.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/815372/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1222.fits evtable="EVENTS" outfile="/scratch/kocevski/815372/ft1_filtered_4FGL_J1018.4+3540_daily_bin1222.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/815372/ft1_filtered_4FGL_J1018.4+3540_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/815372/ltcube_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.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/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.fits
.....................!
real 15.32
user 14.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815372/ft1_filtered_4FGL_J1018.4+3540_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/815372/ltcube_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.fits outfile=/scratch/kocevski/815372/expmap_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.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/815372/ltcube_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.fits
.....................!
real 190.34
user 185.92
sys 3.98

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/815372/ft1_filtered_4FGL_J1018.4+3540_daily_bin1222.fits scfile=/scratch/kocevski/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.fits outfile=/scratch/kocevski/815372/cmap_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.607 yref=35.6802 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/815372/ft1_filtered_4FGL_J1018.4+3540_daily_bin1222.fits', '/scratch/kocevski/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.fits', expMap='/scratch/kocevski/815372/expmap_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.fits', expCube='/scratch/kocevski/815372/ltcube_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/815372/Model_4FGL_J1018.4+3540_daily_bin1222.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/815372/ft1_filtered_4FGL_J1018.4+3540_daily_bin1222.fits
Spacecraft file(s): /scratch/kocevski/815372/ft2_4FGL_J1018.4+3540_daily_bin1222.fits
Exposure map: /scratch/kocevski/815372/expmap_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.fits
Exposure cube: /scratch/kocevski/815372/ltcube_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/815372/Model_4FGL_J1018.4+3540_daily_bin1222.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 284.645980716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 284.253755668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36988E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0158       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0854       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.876       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61982E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .15683E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16609E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .99438E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    9.8097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9724       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4433       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4951       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .79354E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5909       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17318E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0918       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40584E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8795       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5710       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.0008       1.0000         .10000E-03   10000.    
    25 'norm      '    9.1800       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .62931       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   284.2293     FROM MIGRAD    STATUS=CONVERGED    220 CALLS      473 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    71.072       -.17704E-05** at limit **
   2  norm          .12504E-03    932.33        .20556E-05** at limit **
   3  Prefactor     39.359        207.76        .36817E-04    .11601E-02
   4  Prefactor     .21150E-03    1394.1        .62373E-05** at limit **
   5  Prefactor     .21711E-02    934.84        .61560E-06** at limit **
   6  Prefactor     23.717        43.030       -.51251E-06    .34410E-03
   7  Prefactor     .10000E-03    40.379        .17422E-06** at limit **
   8  Prefactor     .10000E-03    8.0742       -.30894E-05** at limit **
   9  norm          .10000E-03    63.189        .10573E-04** at limit **
  10  Prefactor     .10000E-03    40.338       -.34429E-06** at limit **
  11  Prefactor     5.8976        1.0036         .0000         .0000    
  12  Prefactor     .10000E-03    59.444        .22988E-05** at limit **
  13  norm          5.6420        349.09       -.55996E-05    .84023E-02
  14  Prefactor     .10156E-03    325.66        .61090E-05** at limit **
  15  Prefactor     .24262E-01    2121.2       -.27726E-05   -.33213E-02
  16  Prefactor     3.4951        1.0106         .0000         .0000    
  17  Prefactor     .10008E-03    364.73        .10377E-04** at limit **
  18  Prefactor     1.5909        1.0607         .0000         .0000    
  19  Prefactor     .19738E-03    426.97        .20306E-05** at limit **
  20  Prefactor     7.0918        1.0025         .0000         .0000    
  21  Prefactor     .10000E-03    73.570        .41580E-06** at limit **
  22  norm          1.8795        1.0407         .0000         .0000    
  23  Prefactor     2.5710        1.0203         .0000         .0000    
  24  Prefactor     1.0008        1.3884         .0000         .0000    
  25  norm          7.7182        41.760       -.20192E-05    .29848E-02
  26  Normalizat    .54310        1.2659        .81928E-05    .12254E-05
  27  Prefactor     1.3135        1.1775       -.17390E-04    .24819E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000125042
  Prefactor  = 39.3588
  Prefactor  = 0.000211502
  Prefactor  = 0.0021711
  Prefactor  = 23.7167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.89762
  Prefactor  = 0.0001
  norm       = 5.64197
  Prefactor  = 0.000101562
  Prefactor  = 0.0242619
  Prefactor  = 3.49515
  Prefactor  = 0.00010008
  Prefactor  = 1.59091
  Prefactor  = 0.000197383
  Prefactor  = 7.09184
  Prefactor  = 0.0001
  norm       = 1.87947
  Prefactor  = 2.57096
  Prefactor  = 1.0008
  norm       = 7.71821
  Normalizat = 0.543098
  Prefactor  = 1.31353
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   284.2293     FROM HESSE     STATUS=FAILED        51 CALLS      524 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    71.204        .92064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .12504E-03    932.62        .12945E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.359        131.67        .32198E-02   -1.4452    
   4  Prefactor     .21150E-03    1394.8        .71481E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21711E-02    938.74        .40572E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.717        32.507        .20079E-02   -1.4734    
   7  Prefactor     .10000E-03    40.464        .94454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    62.243        .91012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     522.91        516.97         .0000       -1.5222    
  12  Prefactor     .10000E-03    .22603        .22988E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6420        .75952       -.55996E-05   -1.5233    
  14  Prefactor     .10156E-03    .13618        .61090E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .24262E-01    .57126E-01   -.27726E-05   -1.5739    
  16  Prefactor     3.4951        1.0106         .0000       -1.5334    
  17  Prefactor     .10008E-03    .21370        .10377E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5909        1.0607         .0000       -1.5456    
  19  Prefactor     .19738E-03    .20571        .20306E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0918        1.0025         .0000       -1.5175    
  21  Prefactor     .10000E-03    .21271        .41580E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8795        1.0407         .0000       -1.5434    
  23  Prefactor     2.5710        1.0203         .0000       -1.5387    
  24  Prefactor     1.0008        1.3884         .0000       -1.5508    
  25  norm          7.7182        .91836       -.20192E-05   -1.5152    
  26  Normalizat    .54310        .90198        .81928E-05   -1.1046    
  27  Prefactor     1.3135        1.0895       -.17390E-04   -.82906    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.2639e-10
Minuit parameter uncertainties:
  1  0.00013289
  2  0.310606
  3  132.661
  4  0.808311
  5  2.83429
  6  32.5309
  7  4.16515e-05
  8  2.85422e-06
  9  8.01097e-06
  10  9.22939e-05
  11  1.00364
  12  6.94529e-06
  13  0.759526
  14  0.000922376
  15  0.0571257
  16  1.01062
  17  0.000261481
  18  1.06067
  19  0.00895169
  20  1.00251
  21  1.14245e-05
  22  1.04068
  23  1.02029
  24  1.38847
  25  0.918362
  26  0.928186
  27  1.10935
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 284.229261583

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  6.945e-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:  1.314e+00  1.109e+00  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:  5.431e-01  9.282e-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: 2.74e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815372/likelihoodResults_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.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) = 284.229313149
delta logL = -5.15665046805e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 284.229262632
delta logL = -1.04986429506e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11435E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4591       1.0000          .0000       10.000    
     3 'Normalizat'    .54301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3136       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=   284.2293     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      295 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    789.36        .91730E-02** at limit **
   2  Index         2.0314        6.4275        .50000        .60598E-07
   3  Normalizat    .54311        .72037E-01    .34607E-03    .29173E-03
   4  Prefactor     1.3135        .74842E-01    .23847E-03    .42073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010014
  Index      = 2.03144
  Normalizat = 0.543114
  Prefactor  = 1.31355
 **********
 **   18 **HESSE 
 **********

 FCN=   284.2293     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    7013.8        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0314        5.1854        .50000       -.63566    
   3  Normalizat    .54311        .18631        .69213E-04   -1.1046    
   4  Prefactor     1.3135        .19366        .47694E-04   -.82905    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.12803e-08
Minuit parameter uncertainties:
  1  0.0513645
  2  5333.65
  3  0.186521
  4  0.193767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815372': 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) = 284.229261455
delta logL = 1.2795976545e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.001e-04  5.136e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.031e+00  5.334e+03  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:  1.314e+00  1.938e-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:  5.431e-01  1.865e-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/815372/cmap_HighResolution_556070401_556329601_4FGL_J1018.4+3540_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-01', job_status='DONE', photon_flux_upper_limit='2.74e-06', time_completed='2021-09-01 18:11:23.841592', job_id='815372', GAL2='1.31', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1630545083.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.31', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1222' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:11:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 815372: <4FGL_J1018.4+3540_daily_bin1222> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1222 154.607 35.6802 556070401 556329601 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 :                                   336.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   360 sec.
    Turnaround time :                            362 sec.

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

