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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin1255
RA = 160.15, Dec = 6.2848
tmin = 564624001, tmax = 564883201
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='69215', job_status='RUN', time_executed='2021-09-02 08:38:48.186856', time_epoch_executed='1630597128.19' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69215/ft1_4FGL_J1040.5+0617_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69215/ft1_4FGL_J1040.5+0617_daily_bin1255.fits outfile=/scratch/kocevski/69215/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1255.fits ra=160.15 dec=6.2848 rad=12.0 tmin=564624001.0 tmax=564883201.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.62
user 3.35
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.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/69215/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.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/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/69215/ltcube_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.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/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits
.....................!
real 14.65
user 14.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/69215/ltcube_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.fits outfile=/scratch/kocevski/69215/expmap_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.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/69215/ltcube_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.fits
.....................!
real 192.03
user 186.01
sys 5.50

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J1040.5+0617 @ 160.15 6.2848

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits scfile=/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits outfile=/scratch/kocevski/69215/cmap_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.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=160.15 yref=6.2848 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.61
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits scfile=/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits outfile=/scratch/kocevski/69215/cmap_HighResolution_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.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=160.15 yref=6.2848 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.65
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69215/Model_4FGL_J1040.5+0617_daily_bin1255.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/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits......................!
real 36.08
user 32.65
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits', '/scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits', expMap='/scratch/kocevski/69215/expmap_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.fits', expCube='/scratch/kocevski/69215/ltcube_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/69215/Model_4FGL_J1040.5+0617_daily_bin1255.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1040.5+0617'

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.877e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/69215/ft1_filtered_4FGL_J1040.5+0617_daily_bin1255.fits
Spacecraft file(s): /scratch/kocevski/69215/ft2_4FGL_J1040.5+0617_daily_bin1255.fits
Exposure map: /scratch/kocevski/69215/expmap_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.fits
Exposure cube: /scratch/kocevski/69215/ltcube_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/69215/Model_4FGL_J1040.5+0617_daily_bin1255.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) = 2539.00148248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    244.03       1.0000         .10000E-03   10000.    
     3 'norm      '    .13939E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27363E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.624       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13231E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.928       1.0000         .10000E-03   10000.    
    13 'norm      '    .93002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.789       1.0000         .10000E-03   10000.    
    17 'norm      '    14.662       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0320       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2538.677     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     2187 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.699        .44837E-06** at limit **
   2  Prefactor     243.99        404.68        .10599E-06   -.34568E-05
   3  norm          .10001E-03    63.638        .29319E-05** at limit **
   4  Prefactor     38.554        33.299       -.74812E-05    .18651E-04
   5  Prefactor     .10000E-03    69.025        .40677E-06** at limit **
   6  Prefactor     .10000E-03    842.45        .67200E-05** at limit **
   7  Prefactor     .10000E-03    69.503        .16082E-05** at limit **
   8  norm          12.624        6.3861       -.17951E-07    .44777E-04
   9  Prefactor     .10000E-03    38.710       -.19034E-07** at limit **
  10  Prefactor     1.4529        9.1516        .14058E-05    .43083E-04
  11  Prefactor     .10000E-03    7.2874        .23798E-08** at limit **
  12  Prefactor     16.930        20.190       -.41335E-06   -.29274E-04
  13  norm          .92996        .89062        .17839E-07    .12532E-05
  14  Prefactor     .10000E-03    10.062        .28479E-07** at limit **
  15  norm          1.0796        1.2105        .12853E-07   -.21584E-05
  16  Prefactor     22.784        22.656       -.16070E-08   -.12683E-04
  17  norm          14.661        12.537        .42925E-07   -.57649E-05
  18  Normalizat    1.0319        .28649       -.56804E-06   -.22553E-04
  19  Prefactor     .76146        .23893        .14663E-06   -.30252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 243.988
  norm       = 0.000100009
  Prefactor  = 38.5537
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  norm       = 12.6241
  Prefactor  = 0.0001
  Prefactor  = 1.45287
  Prefactor  = 0.0001
  Prefactor  = 16.93
  norm       = 0.929962
  Prefactor  = 0.0001
  norm       = 1.0796
  Prefactor  = 22.7843
  norm       = 14.6608
  Normalizat = 1.03194
  Prefactor  = 0.761458
 **********
 **   18 **HESSE 
 **********

 FCN=   2538.677     FROM HESSE     STATUS=OK           270 CALLS     2457 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     243.99        404.67        .12962E-03   -1.2571    
   3  norm          .10001E-03    65.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.554        33.294        .64550E-04   -1.4465    
   5  Prefactor     .10000E-03    69.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    846.17        .19926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    70.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.624        6.3846        .85899E-04   -1.4997    
   9  Prefactor     .10000E-03    38.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4529        8.7315        .25851E-03   -1.5467    
  11  Prefactor     .10000E-03    7.4034        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.930        19.729        .97347E-04   -1.4885    
  13  norm          .92996        .87976        .44690E-04   -1.5515    
  14  Prefactor     .10000E-03    10.083        .15602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0796        1.1974        .55867E-04   -1.5500    
  16  Prefactor     22.784        22.654        .83906E-04   -1.4753    
  17  norm          14.661        12.534        .10460E-03   -1.4942    
  18  Normalizat    1.0319        .32941        .25271E-03   -.91968    
  19  Prefactor     .76146        .27567        .24738E-03   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4635e-10
Minuit parameter uncertainties:
  1  0.000112264
  2  409.463
  3  0.00156243
  4  33.3099
  5  0.00027785
  6  0.00305697
  7  0.00117387
  8  6.38499
  9  3.9952e-07
  10  7.12471
  11  8.21135e-06
  12  19.7363
  13  0.879776
  14  5.21516e-06
  15  1.19744
  16  22.6625
  17  12.5362
  18  0.330061
  19  0.276165
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.453e+00  7.125e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.615e-01  2.762e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.032e+00  3.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 160.150 6.285
Photon Flux Upper Limit: 2.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69215/likelihoodResults_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.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): 0
logL (Free Index) = 2538.4610585
delta logL = 0.21633962494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2538.43597383
delta logL = 0.241424300522

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2538.436     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6851        81.011        .81121E-02    .43855E-03
   2  Index         3.2961        6.6137        .13158        .60268E-04
   3  Normalizat    .97588        .81638E-01    .45861E-01    .11734E-03
   4  Prefactor     .78446        .70434E-01    .43518E-01    .12859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68515
  Index      = 3.29613
  Normalizat = 0.97588
  Prefactor  = 0.78446
 **********
 **   18 **HESSE 
 **********

 FCN=   2538.436     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6851        4.5456        .88263E-04   -1.5448    
   2  Index         3.2961        1.4947        .68011E-02   -.34774    
   3  Normalizat    .97588        .33224        .25855E-03   -.93843    
   4  Prefactor     .78446        .27642        .24369E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52426e-11
Minuit parameter uncertainties:
  1  4.5465
  2  1.52111
  3  0.332949
  4  0.276912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69215': 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) = 2538.43597348
delta logL = 0.241424651989

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.685e+00  4.546e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  3.296e+00  1.521e+00  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.845e-01  2.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  9.759e-01  3.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 160.150 6.285

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/69215/cmap_HighResolution_564624001_564883201_4FGL_J1040.5+0617_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', job_status='DONE', photon_flux_upper_limit='2.12e-07', time_completed='2021-09-02 08:47:40.180445', job_id='69215', GAL2='0.78', fit_tolerance='1e-08', EG2='0.98', EG='1.03', time_epoch_completed='1630597660.18', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.41e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1255' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:47:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 69215: <4FGL_J1040.5+0617_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin1255> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:36:37 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:36:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 08:36:57 2021
Terminated at Thu Sep  2 08:47:40 2021
Results reported at Thu Sep  2 08:47:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin1255 160.15 6.2848 564624001 564883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1040.5+0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   434.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            663 sec.

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

