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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1388
RA = 154.607, Dec = 35.6802
tmin = 599097601, tmax = 599356801
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='815622', job_status='RUN', time_executed='2021-09-01 18:05:56.629338', time_epoch_executed='1630544756.63' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/815622

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/815622/ft1_4FGL_J1018.4+3540_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/815622/ft1_4FGL_J1018.4+3540_daily_bin1388.fits outfile=/scratch/kocevski/815622/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1388.fits ra=154.607 dec=35.6802 rad=12.0 tmin=599097601.0 tmax=599356801.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.92
user 2.68
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.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/815622/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1388.fits evtable="EVENTS" outfile="/scratch/kocevski/815622/ft1_filtered_4FGL_J1018.4+3540_daily_bin1388.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/815622/ft1_filtered_4FGL_J1018.4+3540_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/815622/ltcube_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.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/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.fits
.....................!
real 16.65
user 16.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/815622/ft1_filtered_4FGL_J1018.4+3540_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/815622/ltcube_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.fits outfile=/scratch/kocevski/815622/expmap_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.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/815622/ltcube_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.fits
.....................!
real 193.08
user 187.57
sys 4.60

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/815622/ft1_filtered_4FGL_J1018.4+3540_daily_bin1388.fits scfile=/scratch/kocevski/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.fits outfile=/scratch/kocevski/815622/cmap_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/815622/ft1_filtered_4FGL_J1018.4+3540_daily_bin1388.fits scfile=/scratch/kocevski/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.fits outfile=/scratch/kocevski/815622/cmap_HighResolution_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.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/815622/ft1_filtered_4FGL_J1018.4+3540_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/815622/ft2_4FGL_J1018.4+3540_daily_bin1388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/815622/Model_4FGL_J1018.4+3540_daily_bin1388.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/815622/ft1_filtered_4FGL_J1018.4+3540_daily_bin1388.fits.....................!
real 50.80
user 49.44
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .88339E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11545E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11526E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9074       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11382E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.968       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54387E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.647       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0216       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .18897E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83745       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1979       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=   6027.481     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3403 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4943       -.12464E-06** at limit **
   2  norm          .10000E-03    45.019       -.19731E-04** at limit **
   3  Prefactor     19.302        32.020       -.10776E-07   -.12285E-04
   4  Prefactor     32.896        25.593        .26282E-06    .92279E-04
   5  Prefactor     .10000E-03    8.2735        .89344E-06** at limit **
   6  Prefactor     .10000E-03    13.734        .10933E-06** at limit **
   7  Prefactor     .10000E-03    12.286        .62751E-06** at limit **
   8  Prefactor     .10000E-03    1.5070        .14939E-06** at limit **
   9  norm          2.9024        5.7139        .34480E-05   -.59713E-04
  10  Prefactor     .10000E-03    1.8259        .11058E-05** at limit **
  11  Prefactor     22.270        31.079        .15044E-05    .56637E-06
  12  Prefactor     .10000E-03    1.8897        .17902E-06** at limit **
  13  norm          4.1365        7.0961       -.19179E-06   -.89569E-04
  14  Prefactor     .10000E-03    61.967       -.19791E-05** at limit **
  15  Prefactor     21.958        24.784        .19772E-06    .11334E-04
  16  Prefactor     5.3555        3.9675        .96728E-07    .33005E-04
  17  Prefactor     2.3367        3.8506        .37381E-07    .33675E-05
  18  Prefactor     .10000E-03    9.0642       -.10942E-05** at limit **
  19  Prefactor     .10002E-03    12.575       -.25402E-05** at limit **
  20  Prefactor     81.647        70.794        .23421E-06   -.16322E-06
  21  Prefactor     .10000E-03    5.1651        .15149E-06** at limit **
  22  norm          2.0217        .33123        .35268E-08   -.10573E-03
  23  Prefactor     .10000E-03    3.2418        .42575E-07** at limit **
  24  Prefactor     .10000E-03    4.1008        .11482E-06** at limit **
  25  norm          .10000E-03    23.794        .34277E-06** at limit **
  26  Normalizat    .83773        .16486        .21316E-06    .16032E-04
  27  Prefactor     1.1980        .19702       -.10377E-05   -.61788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.3025
  Prefactor  = 32.896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.90241
  Prefactor  = 0.0001
  Prefactor  = 22.2704
  Prefactor  = 0.0001
  norm       = 4.13652
  Prefactor  = 0.0001
  Prefactor  = 21.958
  Prefactor  = 5.35554
  Prefactor  = 2.33672
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 81.6471
  Prefactor  = 0.0001
  norm       = 2.02165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.837735
  Prefactor  = 1.19801
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.481     FROM HESSE     STATUS=OK           498 CALLS     3901 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5038        .16074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    51.468        .45558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.302        31.986        .91169E-04   -1.4829    
   4  Prefactor     32.896        25.247        .69812E-04   -1.4560    
   5  Prefactor     .10000E-03    8.2560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9241        .18378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9024        10.069        .11915E-02   -1.5367    
  10  Prefactor     .10000E-03    6.9134        .19259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.270        31.060        .84849E-04   -1.4764    
  12  Prefactor     .10000E-03    3.8835        .20288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1365        7.0741        .19813E-03   -1.5301    
  14  Prefactor     .10000E-03    61.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.958        24.796        .85459E-04   -1.4770    
  16  Prefactor     5.3555        3.9690        .12491E-03   -1.5245    
  17  Prefactor     2.3367        3.8346        .16987E-03   -1.5402    
  18  Prefactor     .10000E-03    9.0744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    12.309        .91825E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     81.647        70.786        .44451E-04   -1.3898    
  21  Prefactor     .10000E-03    5.1892        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0217        .33155        .17519E-04   -1.5424    
  23  Prefactor     .10000E-03    3.2461        .13651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1053        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    24.929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83773        .19158        .25138E-03   -.98684    
  27  Prefactor     1.1980        .23143        .26426E-03   -.86393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74001e-10
Minuit parameter uncertainties:
  1  1.96811e-06
  2  4.48466e-05
  3  32.014
  4  25.2554
  5  2.45497e-05
  6  0.000136069
  7  9.98533e-06
  8  1.02027e-05
  9  10.0747
  10  8.29483e-05
  11  31.0828
  12  6.61734e-06
  13  7.07557
  14  0.000218608
  15  24.8072
  16  3.96924
  17  3.83501
  18  1.08765e-05
  19  0.000906685
  20  70.8591
  21  1.23533e-05
  22  0.331555
  23  5.59817e-06
  24  3.21701e-06
  25  0.000261262
  26  0.191738
  27  0.231624
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.000e-04  6.617e-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.198e+00  2.316e-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.377e-01  1.917e-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.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/815622/likelihoodResults_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.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) = 6027.48213311
delta logL = -0.00122640676091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6027.48090694
delta logL = -2.3805660021e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5984       1.0000          .0000       10.000    
     3 'Normalizat'    .83769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1981       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=   6027.481     FROM MIGRAD    STATUS=FAILED        97 CALLS      266 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    43.403        .20223E-02** at limit **
   2  Index         2.6498        6.5482        .50000       -.12544E-04
   3  Normalizat    .83773        .13680E-01    .25138E-03    .52053E-04
   4  Prefactor     1.1980        .16955E-01    .26426E-03    .56701E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6027.481     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      392 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    43.403        .36571E-03** at limit **
   2  Index         2.6498        6.5482        .36960E-03   -.12544E-04
   3  Normalizat    .83773        .13680E-01    .25961E-05    .52053E-04
   4  Prefactor     1.1980        .16955E-01    .30253E-05    .56701E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6027.481     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      425 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    212.99        .40445E-03** at limit **
   2  Index         2.6415        5.9808        .50000       -.13531E-04
   3  Normalizat    .83773        .31938E-01    .10055E-04    .48616E-04
   4  Prefactor     1.1980        .39582E-01    .10570E-04    .54206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100243
  Index      = 2.64152
  Normalizat = 0.837734
  Prefactor  = 1.19801
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.481     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      454 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10024E-03    834.64        .80891E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6415        6.2988        .50000       -.49121    
   3  Normalizat    .83773        .10672        .20111E-05   -.98684    
   4  Prefactor     1.1980        .13201        .21141E-05   -.86393    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.90001e-08
Minuit parameter uncertainties:
  1  0.0288739
  2  1168.8
  3  0.106743
  4  0.132045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/815622': 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) = 6027.48090654
delta logL = 1.65952769748e-07

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.002e-04  2.887e-02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.642e+00  1.169e+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.198e+00  1.320e-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.377e-01  1.067e-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/815622/cmap_HighResolution_599097601_599356801_4FGL_J1018.4+3540_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-01 18:19:34.211214', job_id='815622', GAL2='1.20', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630545574.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1388' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:19:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 815622: <4FGL_J1018.4+3540_daily_bin1388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1388 154.607 35.6802 599097601 599356801 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 :                                   813.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

