/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 180 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 = 7430
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1018.4+0528_daily_bin445
RA = 154.617, Dec = 5.4702
tmin = 354672001, tmax = 354931201
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='803910', job_status='RUN', time_executed='2021-09-01 17:31:02.911784', time_epoch_executed='1630542662.91' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803910/ft1_4FGL_J1018.4+0528_daily_bin445.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803910/ft1_4FGL_J1018.4+0528_daily_bin445.fits outfile=/scratch/kocevski/803910/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin445.fits ra=154.617 dec=5.4702 rad=12.0 tmin=354672001.0 tmax=354931201.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.43
user 3.16
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.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/803910/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin445.fits evtable="EVENTS" outfile="/scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/803910/ltcube_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.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/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits
.....................!
real 16.55
user 16.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/803910/ltcube_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.fits outfile=/scratch/kocevski/803910/expmap_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.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/803910/ltcube_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.fits
.....................!
real 194.14
user 188.96
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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits scfile=/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits outfile=/scratch/kocevski/803910/cmap_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.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.617 yref=5.4702 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits scfile=/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits outfile=/scratch/kocevski/803910/cmap_HighResolution_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.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.617 yref=5.4702 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803910/Model_4FGL_J1018.4+0528_daily_bin445.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/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits.....................!
real 56.94
user 54.97
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits', '/scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits', expMap='/scratch/kocevski/803910/expmap_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.fits', expCube='/scratch/kocevski/803910/ltcube_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803910/Model_4FGL_J1018.4+0528_daily_bin445.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/803910/ft1_filtered_4FGL_J1018.4+0528_daily_bin445.fits
Spacecraft file(s): /scratch/kocevski/803910/ft2_4FGL_J1018.4+0528_daily_bin445.fits
Exposure map: /scratch/kocevski/803910/expmap_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.fits
Exposure cube: /scratch/kocevski/803910/ltcube_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803910/Model_4FGL_J1018.4+0528_daily_bin445.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) = 5389.2792067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9423       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0373       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4746       1.0000         .10000E-03   10000.    
     8 'Prefactor '    102.41       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .79271E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12457E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5680       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.315       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.185       1.0000         .10000E-03   10000.    
    16 'norm      '    .84768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12687E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5057       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86154       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5389.251     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2140 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9433        1.5743        .10949E-07   -.57811E-04
   2  norm          5.0375        1.0477        .12825E-07   -.55529E-04
   3  Prefactor     .10000E-03    4.0593       -.15094E-06** at limit **
   4  Prefactor     .10000E-03    59.936       -.61771E-06** at limit **
   5  Prefactor     .10000E-03    39.565        .80464E-06** at limit **
   6  norm          .10000E-03    6.1369       -.30194E-06** at limit **
   7  Prefactor     4.4768        7.4345        .81670E-06    .12367E-03
   8  Prefactor     102.40        68.599        .18833E-05    .77261E-04
   9  Prefactor     .10001E-03    93.113       -.50445E-05** at limit **
  10  Prefactor     .10000E-03    21.298       -.13290E-05** at limit **
  11  norm          .10000E-03    1.2371        .36913E-06** at limit **
  12  Prefactor     8.7368        7.6468       -.57026E-06   -.23064E-03
  13  Prefactor     5.5705        4.5591        .55658E-06   -.29043E-03
  14  Prefactor     11.322        10.331        .20443E-07   -.24097E-05
  15  Prefactor     34.189        14.018       -.29414E-06    .40957E-04
  16  norm          .84763        .68145        .27312E-07    .41641E-03
  17  Prefactor     .10008E-03    8.0248       -.66939E-06** at limit **
  18  Prefactor     2.5026        17.814        .54231E-05   -.10870E-03
  19  Normalizat    .86075        .21503        .42293E-06   -.48035E-05
  20  Prefactor     .87186        .16649       -.97787E-06   -.74194E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.94326
  norm       = 5.03752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.47685
  Prefactor  = 102.395
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.73677
  Prefactor  = 5.57048
  Prefactor  = 11.3215
  Prefactor  = 34.1886
  norm       = 0.847634
  Prefactor  = 0.000100081
  Prefactor  = 2.50262
  Normalizat = 0.86075
  Prefactor  = 0.871863
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.251     FROM HESSE     STATUS=OK           299 CALLS     2439 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9433        1.5769        .63614E-04   -1.5365    
   2  norm          5.0375        1.0482        .17916E-04   -1.5259    
   3  Prefactor     .10000E-03    4.0654        .14450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    60.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.1549        .17778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4768        7.4271        .19035E-03   -1.5285    
   8  Prefactor     102.40        68.969        .39730E-04   -1.3681    
   9  Prefactor     .10001E-03    96.614        .20908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7156        .15444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7368        7.6407        .13562E-03   -1.5117    
  13  Prefactor     5.5705        4.5916        .64515E-03   -1.5236    
  14  Prefactor     11.322        10.370        .11910E-03   -1.5035    
  15  Prefactor     34.189        13.792        .68538E-04   -1.4538    
  16  norm          .84763        .61597        .47602E-04   -1.5524    
  17  Prefactor     .10008E-03    110.86        .35560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5026        18.312        .12908E-02   -1.5392    
  19  Normalizat    .86075        .25474        .28770E-03   -.97853    
  20  Prefactor     .87186        .19589        .23496E-03   -.97131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04326e-09
Minuit parameter uncertainties:
  1  1.57695
  2  1.04825
  3  1.68356e-05
  4  6.54662e-05
  5  0.000115379
  6  3.81386e-05
  7  7.42858
  8  69.0235
  9  0.0019051
  10  0.000304296
  11  1.93667e-06
  12  7.64156
  13  4.59186
  14  10.372
  15  13.7933
  16  0.615971
  17  0.00599509
  18  13.5448
  19  0.255096
  20  0.196047
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.905e-03  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.719e-01  1.960e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.608e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 9.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803910/likelihoodResults_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.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) = 5389.25105615
delta logL = -4.91979399158e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5389.25100698
delta logL = -2.37969288719e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3274       1.0000          .0000       10.000    
     3 'Normalizat'    .86075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5389.251     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7750.1        .90712E-02** at limit **
   2  Index         2.3389        5.6078        .50000       -.10300E-05
   3  Normalizat    .86075        .46907E-01    .65039E-01    .18621E-04
   4  Prefactor     .87186        .38739E-01    .44645E-01    .10902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33889
  Normalizat = 0.860749
  Prefactor  = 0.871864
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.251     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9533.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3389        5.6021        .50000       -.56122    
   3  Normalizat    .86075        .87331E-01    .28770E-03   -.97853    
   4  Prefactor     .87186        .72235E-01    .23496E-03   -.97131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46708e-10
Minuit parameter uncertainties:
  1  0.000232597
  2  54.5585
  3  0.0873452
  4  0.0722427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803910': 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) = 5389.25100694
delta logL = 1.30530679598e-08

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.326e-04  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.339e+00  5.456e+01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.719e-01  7.224e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.607e-01  8.735e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.617 5.470

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/803910/cmap_HighResolution_354672001_354931201_4FGL_J1018.4+0528_daily_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.51e-08', time_completed='2021-09-01 17:40:12.517841', job_id='803910', GAL2='0.87', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630543212.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='445' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:40:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 803910: <4FGL_J1018.4+0528_daily_bin445> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin445> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:57 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:27:49 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:27:49 2021
Terminated at Wed Sep  1 17:40:13 2021
Results reported at Wed Sep  1 17:40:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin445 154.617 5.4702 354672001 354931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   549.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            856 sec.

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

