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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1105
RA = 154.607, Dec = 35.6802
tmin = 525744001, tmax = 526003201
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='814127', job_status='RUN', time_executed='2021-09-01 18:02:41.418878', time_epoch_executed='1630544561.42' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/814127

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/814127/ft1_4FGL_J1018.4+3540_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/814127/ft2_4FGL_J1018.4+3540_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/814127/ft1_4FGL_J1018.4+3540_daily_bin1105.fits outfile=/scratch/kocevski/814127/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1105.fits ra=154.607 dec=35.6802 rad=12.0 tmin=525744001.0 tmax=526003201.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 4.37
user 4.15
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/814127/ft1_filtered_4FGL_J1018.4+3540_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/814127/ft2_4FGL_J1018.4+3540_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/814127/ltcube_525744001_526003201_4FGL_J1018.4+3540_daily_bin1105.fits outfile=/scratch/kocevski/814127/expmap_525744001_526003201_4FGL_J1018.4+3540_daily_bin1105.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/814127/ltcube_525744001_526003201_4FGL_J1018.4+3540_daily_bin1105.fits
.....................!
real 190.84
user 186.31
sys 4.12

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/814127/ft1_filtered_4FGL_J1018.4+3540_daily_bin1105.fits scfile=/scratch/kocevski/814127/ft2_4FGL_J1018.4+3540_daily_bin1105.fits outfile=/scratch/kocevski/814127/cmap_525744001_526003201_4FGL_J1018.4+3540_daily_bin1105.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/814127/ft1_filtered_4FGL_J1018.4+3540_daily_bin1105.fits scfile=/scratch/kocevski/814127/ft2_4FGL_J1018.4+3540_daily_bin1105.fits outfile=/scratch/kocevski/814127/cmap_HighResolution_525744001_526003201_4FGL_J1018.4+3540_daily_bin1105.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12369E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7293       1.0000         .10000E-03   10000.    
     9 'norm      '    5.4790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4961       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2670       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.080       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.522       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4513       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4031       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81065       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99275       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=   5596.541     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3310 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6005        .21368E-07** at limit **
   2  norm          .10000E-03    34.561       -.14247E-05** at limit **
   3  Prefactor     25.306        24.729       -.39911E-06   -.12547E-03
   4  Prefactor     .62414        41.786       -.71781E-05    .52452E-03
   5  Prefactor     .10000E-03    27.258       -.99489E-07** at limit **
   6  Prefactor     3.7964        8.7869        .89290E-06    .27734E-03
   7  Prefactor     6.5629        7.8572        .27960E-06    .19629E-03
   8  Prefactor     1.7290        2.1280        .18329E-06    .35618E-03
   9  norm          5.4778        8.5189        .46438E-06    .26860E-03
  10  Prefactor     4.1118        2.9699        .28658E-07    .10063E-03
  11  Prefactor     39.767        31.462       -.28848E-06    .29918E-05
  12  Prefactor     .10000E-03    2.5757       -.45310E-07** at limit **
  13  norm          4.4980        12.944        .67875E-06    .68131E-04
  14  Prefactor     .10002E-03    51.724        .28817E-05** at limit **
  15  Prefactor     .10000E-03    16.154       -.10579E-05** at limit **
  16  Prefactor     .10000E-03    2.6575       -.27279E-06** at limit **
  17  Prefactor     3.2656        4.4329        .23209E-06    .16151E-03
  18  Prefactor     26.076        28.498       -.68666E-06   -.17187E-03
  19  Prefactor     .10000E-03    26.528        .32498E-06** at limit **
  20  Prefactor     42.516        70.384       -.10301E-05   -.98010E-04
  21  Prefactor     .10000E-03    5.5546        .19898E-07** at limit **
  22  norm          1.4513        .31573        .11677E-07    .83352E-03
  23  Prefactor     .10000E-03    16.213        .13269E-05** at limit **
  24  Prefactor     .10000E-03    7.3051       -.20488E-07** at limit **
  25  norm          7.4030        7.7448        .21454E-05    .10020E-02
  26  Normalizat    .81063        .16298        .23659E-06    .25518E-03
  27  Prefactor     .99283        .19260       -.65829E-06    .17127E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.306
  Prefactor  = 0.624141
  Prefactor  = 0.0001
  Prefactor  = 3.79637
  Prefactor  = 6.56286
  Prefactor  = 1.72903
  norm       = 5.47781
  Prefactor  = 4.1118
  Prefactor  = 39.7669
  Prefactor  = 0.0001
  norm       = 4.49802
  Prefactor  = 0.000100019
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.26556
  Prefactor  = 26.0759
  Prefactor  = 0.0001
  Prefactor  = 42.5156
  Prefactor  = 0.0001
  norm       = 1.45133
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 7.40299
  Normalizat = 0.810634
  Prefactor  = 0.992834
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.541     FROM HESSE     STATUS=OK           488 CALLS     3798 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6245        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    35.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.306        24.772        .79629E-04   -1.4701    
   4  Prefactor     .62414        148.58        .55140E-02   -1.5550    
   5  Prefactor     .10000E-03    27.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7964        8.7690        .20715E-03   -1.5318    
   7  Prefactor     6.5629        7.8624        .15664E-03   -1.5196    
   8  Prefactor     1.7290        2.1024        .11431E-03   -1.5445    
   9  norm          5.4778        8.5200        .17166E-03   -1.5240    
  10  Prefactor     4.1118        2.9618        .10456E-03   -1.5302    
  11  Prefactor     39.767        31.300        .63560E-04   -1.4446    
  12  Prefactor     .10000E-03    2.6600        .23352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4980        12.799        .18988E-03   -1.5284    
  14  Prefactor     .10002E-03    53.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7361        .23727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2656        4.4211        .17186E-03   -1.5347    
  18  Prefactor     26.076        28.521        .78443E-04   -1.4686    
  19  Prefactor     .10000E-03    26.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.516        70.817        .61476E-04   -1.4403    
  21  Prefactor     .10000E-03    5.6181        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4513        .31580        .18954E-04   -1.5467    
  23  Prefactor     .10000E-03    16.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.3553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4030        8.0723        .73703E-03   -1.5164    
  26  Normalizat    .81063        .19063        .22680E-03   -.99675    
  27  Prefactor     .99283        .22548        .25775E-03   -.92969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00379e-08
Minuit parameter uncertainties:
  1  4.42455e-06
  2  0.000185032
  3  24.782
  4  19.3068
  5  3.77273e-05
  6  8.77198
  7  7.86366
  8  2.10253
  9  8.52187
  10  2.96189
  11  31.3127
  12  4.19593e-06
  13  12.8071
  14  0.00202299
  15  0.000398873
  16  1.92207e-05
  17  4.42157
  18  28.536
  19  0.000130035
  20  70.9571
  21  1.02194e-07
  22  0.315802
  23  0.00044976
  24  7.40216e-06
  25  8.0735
  26  0.190785
  27  0.225691
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  4.196e-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:  9.928e-01  2.257e-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:  8.106e-01  1.908e-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: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/814127/likelihoodResults_525744001_526003201_4FGL_J1018.4+3540_daily_bin1105.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) = 5596.5431786
delta logL = -0.00179379699057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5596.54138514
delta logL = -3.405566531e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5734       1.0000          .0000       10.000    
     3 'Normalizat'    .81055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99299       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=   5596.541     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    27.369        .23604E-02** at limit **
   2  Index         2.5148        6.8944        .50000        .39124E-04
   3  Normalizat    .81063        .11937E-01    .22680E-03    .14712E-03
   4  Prefactor     .99283        .14958E-01    .25775E-03    .11600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101108
  Index      = 2.5148
  Normalizat = 0.810634
  Prefactor  = 0.992835
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.541     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10111E-03    120.62        .47207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5148        7.9498        .50000       -.52018    
   3  Normalizat    .81063        .26060E-01    .90719E-05   -.99675    
   4  Prefactor     .99283        .32656E-01    .10310E-04   -.92969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.72052e-08
Minuit parameter uncertainties:
  1  0.0231665
  2  450.802
  3  0.0260601
  4  0.0326562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/814127': 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) = 5596.54138419
delta logL = 6.13785232417e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.011e-04  2.317e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.515e+00  4.508e+02  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.928e-01  3.266e-02  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:  8.106e-01  2.606e-02  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/814127/cmap_HighResolution_525744001_526003201_4FGL_J1018.4+3540_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-01 18:15:34.525749', job_id='814127', GAL2='0.99', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630545334.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1105' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:15:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 814127: <4FGL_J1018.4+3540_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1105> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:00:30 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:00:32 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:32 2021
Terminated at Wed Sep  1 18:15:35 2021
Results reported at Wed Sep  1 18:15:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1105 154.607 35.6802 525744001 526003201 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 :                                   771.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

