/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 184 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+3540_daily_bin22
RA = 154.607, Dec = 35.6802
tmin = 245030401, tmax = 245289601
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='809463', job_status='RUN', time_executed='2021-09-01 17:48:58.426993', time_epoch_executed='1630543738.43' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809463/ft1_4FGL_J1018.4+3540_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809463/ft2_4FGL_J1018.4+3540_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809463/ft1_4FGL_J1018.4+3540_daily_bin22.fits outfile=/scratch/kocevski/809463/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin22.fits ra=154.607 dec=35.6802 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.48
user 1.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809463/ft1_filtered_4FGL_J1018.4+3540_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/809463/ft2_4FGL_J1018.4+3540_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/809463/ltcube_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.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/809463/ft2_4FGL_J1018.4+3540_daily_bin22.fits
.....................!
real 17.62
user 17.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809463/ft1_filtered_4FGL_J1018.4+3540_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/809463/ft2_4FGL_J1018.4+3540_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/809463/ltcube_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.fits outfile=/scratch/kocevski/809463/expmap_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.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/809463/ltcube_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.fits
.....................!
real 192.25
user 187.51
sys 4.25

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/809463/ft1_filtered_4FGL_J1018.4+3540_daily_bin22.fits scfile=/scratch/kocevski/809463/ft2_4FGL_J1018.4+3540_daily_bin22.fits outfile=/scratch/kocevski/809463/cmap_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809463/ft1_filtered_4FGL_J1018.4+3540_daily_bin22.fits scfile=/scratch/kocevski/809463/ft2_4FGL_J1018.4+3540_daily_bin22.fits outfile=/scratch/kocevski/809463/cmap_HighResolution_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0707       1.0000         .10000E-03   10000.    
     2 'norm      '    .10751E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    86.965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.775       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.614       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0459       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.218       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.7127       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90379       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=   4971.938     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3262 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0720        8.4896       -.11197E-06   -.15603E-03
   2  norm          .10000E-03    50.463       -.12273E-04** at limit **
   3  Prefactor     .10000E-03    17.357       -.40470E-05** at limit **
   4  Prefactor     86.967        49.269        .10810E-05    .67917E-04
   5  Prefactor     51.787        64.083        .13382E-04    .32462E-06
   6  Prefactor     .30522        8.9176        .21906E-05   -.29205E-03
   7  Prefactor     .10000E-03    9.2262        .38460E-05** at limit **
   8  Prefactor     .10000E-03    .83132        .70723E-07** at limit **
   9  norm          .10000E-03    6.7914        .21744E-06** at limit **
  10  Prefactor     .10000E-03    2.5967        .66924E-07** at limit **
  11  Prefactor     15.466        43.078        .71459E-04   -.10580E-04
  12  Prefactor     .10000E-03    2.0070        .21308E-07** at limit **
  13  norm          10.242        12.329       -.75272E-05   -.23883E-03
  14  Prefactor     .10000E-03    25.341       -.11102E-04** at limit **
  15  Prefactor     .10000E-03    15.644        .32846E-05** at limit **
  16  Prefactor     10.615        5.5114        .18676E-05   -.23959E-03
  17  Prefactor     .10000E-03    2.7573        .77450E-07** at limit **
  18  Prefactor     .10000E-03    9.4734       -.48392E-05** at limit **
  19  Prefactor     .10000E-03    13.079       -.72810E-06** at limit **
  20  Prefactor     .10000E-03    35.537        .22222E-04** at limit **
  21  Prefactor     .10000E-03    16.706       -.14131E-05** at limit **
  22  norm          1.0459        .35482        .21337E-07   -.82514E-03
  23  Prefactor     19.221        17.290        .16764E-05   -.99655E-04
  24  Prefactor     .10000E-03    14.949        .46841E-05** at limit **
  25  norm          5.7129        9.4354        .12904E-07   -.75935E-04
  26  Normalizat    1.2001        .19269       -.78585E-05    .26157E-04
  27  Prefactor     .90418        .22039        .90232E-06   -.45785E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.07205
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 86.9674
  Prefactor  = 51.7873
  Prefactor  = 0.305217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4656
  Prefactor  = 0.0001
  norm       = 10.242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.04589
  Prefactor  = 19.2209
  Prefactor  = 0.0001
  norm       = 5.71291
  Normalizat = 1.20005
  Prefactor  = 0.904181
 **********
 **   18 **HESSE 
 **********

 FCN=   4971.938     FROM HESSE     STATUS=OK           480 CALLS     3742 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0720        8.4863        .17856E-03   -1.5258    
   2  norm          .10000E-03    51.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     86.967        49.206        .43082E-04   -1.3840    
   5  Prefactor     51.787        64.121        .55737E-04   -1.4267    
   6  Prefactor     .30522        65.747        .39460E-02   -1.5597    
   7  Prefactor     .10000E-03    9.2849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .83904        .62754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.8605        .17940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6477        .11086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.466        42.980        .10198E-03   -1.4921    
  12  Prefactor     .10000E-03    2.0223        .97507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.242        12.334        .12520E-03   -1.5068    
  14  Prefactor     .10000E-03    25.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.615        5.5093        .11297E-03   -1.5056    
  17  Prefactor     .10000E-03    2.7958        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.4750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0459        .35545        .23101E-04   -1.5503    
  23  Prefactor     19.221        17.310        .91363E-04   -1.4831    
  24  Prefactor     .10000E-03    15.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.7129        9.4227        .16805E-03   -1.5230    
  26  Normalizat    1.2001        .22883        .22655E-03   -.86601    
  27  Prefactor     .90418        .26198        .30583E-03   -.95995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58429e-09
Minuit parameter uncertainties:
  1  8.48832
  2  0.000802267
  3  5.6522e-05
  4  49.229
  5  64.2067
  6  8.96779
  7  3.82302e-05
  8  7.20926e-06
  9  4.18096e-05
  10  1.13939e-05
  11  43.0659
  12  2.69788e-07
  13  12.3371
  14  6.27125e-05
  15  1.59226e-05
  16  5.5096
  17  9.0558e-06
  18  7.15713e-06
  19  4.36173e-05
  20  1.52755e-05
  21  0.000166953
  22  0.355453
  23  17.3148
  24  1.02324e-05
  25  9.4251
  26  0.229018
  27  0.262345
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  2.698e-07  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.042e-01  2.623e-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.200e+00  2.290e-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: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809463/likelihoodResults_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.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) = 4971.94055374
delta logL = -0.00233617136382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4971.9382176
delta logL = -3.5397533793e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5857       1.0000          .0000       10.000    
     3 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90421       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4971.938     FROM MIGRAD    STATUS=FAILED        91 CALLS      246 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    122.57        .97594E-03** at limit **
   2  Index         2.5265        5.5648        .50000        .16333E-04
   3  Normalizat    1.2000        .39612E-01    .22655E-03    .75271E-06
   4  Prefactor     .90419        .47333E-01    .30583E-03    .24906E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4971.938     FROM SIMPLEX   STATUS=PROGRESS     149 CALLS      395 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    122.57        .16212E-03** at limit **
   2  Index         2.5263        5.5648        .73276E-04    .16333E-04
   3  Normalizat    1.2000        .39612E-01    .17971E-05    .75271E-06
   4  Prefactor     .90419        .47333E-01    .87482E-06    .24906E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4971.938     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      440 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5681        .19519E-03** at limit **
   2  Index         2.2668        5.7479        .50000        .65211E-07
   3  Normalizat    1.2000        .21722        .90622E-05   -.11818E-03
   4  Prefactor     .90419        .25942        .12233E-04   -.71187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2668
  Normalizat = 1.20004
  Prefactor  = 0.904192
 **********
 **   18 **HESSE 
 **********

 FCN=   4971.938     FROM HESSE     STATUS=OK            29 CALLS      469 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1348        .39038E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2668        5.5318        .50000       -.57835    
   3  Normalizat    1.2000        .21700        .18124E-05   -.86601    
   4  Prefactor     .90419        .25913        .24466E-05   -.95995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71475e-11
Minuit parameter uncertainties:
  1  1.35312e-05
  2  112.348
  3  0.217167
  4  0.259483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809463': 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) = 4971.93821679
delta logL = 7.78084540798e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  1.353e-05  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.267e+00  1.123e+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.042e-01  2.595e-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.200e+00  2.172e-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/809463/cmap_HighResolution_245030401_245289601_4FGL_J1018.4+3540_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-01 18:00:59.418595', job_id='809463', GAL2='0.90', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630544459.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='22' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 809463: <4FGL_J1018.4+3540_daily_bin22> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin22> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 17:45:24 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:45:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:45:45 2021
Terminated at Wed Sep  1 18:00:59 2021
Results reported at Wed Sep  1 18:00:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin22 154.607 35.6802 245030401 245289601 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 :                                   721.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            935 sec.

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

