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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin329
RA = 160.15, Dec = 6.2848
tmin = 324604801, tmax = 324864001
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='62918', job_status='RUN', time_executed='2021-09-02 08:16:39.998438', time_epoch_executed='1630595800.0' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62918/ft1_4FGL_J1040.5+0617_daily_bin329.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62918/ft1_4FGL_J1040.5+0617_daily_bin329.fits outfile=/scratch/kocevski/62918/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin329.fits ra=160.15 dec=6.2848 rad=12.0 tmin=324604801.0 tmax=324864001.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 9.69
user 9.30
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.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/62918/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin329.fits evtable="EVENTS" outfile="/scratch/kocevski/62918/ft1_filtered_4FGL_J1040.5+0617_daily_bin329.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62918/ft1_filtered_4FGL_J1040.5+0617_daily_bin329.fits" evtable="EVENTS" scfile=/scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits sctable="SC_DATA" outfile=/scratch/kocevski/62918/ltcube_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.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/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits
.....................!
real 14.29
user 13.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62918/ft1_filtered_4FGL_J1040.5+0617_daily_bin329.fits evtable="EVENTS" scfile=/scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits sctable="SC_DATA" expcube=/scratch/kocevski/62918/ltcube_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.fits outfile=/scratch/kocevski/62918/expmap_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.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/62918/ltcube_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.fits
.....................!
real 191.24
user 186.39
sys 4.28

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/62918/ft1_filtered_4FGL_J1040.5+0617_daily_bin329.fits scfile=/scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits outfile=/scratch/kocevski/62918/cmap_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62918/ft1_filtered_4FGL_J1040.5+0617_daily_bin329.fits scfile=/scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits outfile=/scratch/kocevski/62918/cmap_HighResolution_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62918/ft1_filtered_4FGL_J1040.5+0617_daily_bin329.fits', '/scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits', expMap='/scratch/kocevski/62918/expmap_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.fits', expCube='/scratch/kocevski/62918/ltcube_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62918/Model_4FGL_J1040.5+0617_daily_bin329.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/62918/ft1_filtered_4FGL_J1040.5+0617_daily_bin329.fits
Spacecraft file(s): /scratch/kocevski/62918/ft2_4FGL_J1040.5+0617_daily_bin329.fits
Exposure map: /scratch/kocevski/62918/expmap_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.fits
Exposure cube: /scratch/kocevski/62918/ltcube_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62918/Model_4FGL_J1040.5+0617_daily_bin329.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) = 2912.88898324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    126.64       1.0000         .10000E-03   10000.    
     6 'Prefactor '    121.35       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6661       1.0000         .10000E-03   10000.    
     8 'norm      '    .71415       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5485       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    52.794       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .77242       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2631       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=   2912.856     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     2194 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5620        18.518        .60665E-06   -.12518E-03
   2  Prefactor     .10000E-03    34.656       -.18808E-05** at limit **
   3  norm          .10000E-03    45.442        .46104E-05** at limit **
   4  Prefactor     8.9616        110.65        .13704E-04   -.55580E-04
   5  Prefactor     126.63        159.23        .34202E-05   -.45645E-04
   6  Prefactor     121.50        427.80       -.28315E-04   -.50014E-04
   7  Prefactor     8.6304        174.90        .11098E-04   -.41149E-04
   8  norm          .71316        2.2193        .16195E-06   -.72405E-04
   9  Prefactor     8.6335        17.313        .76699E-07   -.12251E-04
  10  Prefactor     .10000E-03    1.9293        .21564E-07** at limit **
  11  Prefactor     6.2111        17.294        .45436E-06    .17679E-05
  12  Prefactor     7.5494        13.738        .11924E-06   -.25264E-05
  13  norm          4.1804        1.6957        .13642E-07    .42330E-06
  14  Prefactor     .10000E-03    20.718        .13860E-06** at limit **
  15  norm          .10000E-03    1.7200       -.16182E-06** at limit **
  16  Prefactor     .10000E-03    62.759       -.34896E-05** at limit **
  17  norm          52.773        38.010       -.15460E-05   -.31569E-04
  18  Normalizat    .77246        .32833       -.13375E-06   -.36087E-04
  19  Prefactor     1.2631        .26381       -.59125E-06   -.26216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.56199
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.96155
  Prefactor  = 126.632
  Prefactor  = 121.497
  Prefactor  = 8.63036
  norm       = 0.713164
  Prefactor  = 8.63349
  Prefactor  = 0.0001
  Prefactor  = 6.21111
  Prefactor  = 7.54941
  norm       = 4.1804
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 52.7731
  Normalizat = 0.772462
  Prefactor  = 1.26313
 **********
 **   18 **HESSE 
 **********

 FCN=   2912.856     FROM HESSE     STATUS=OK           266 CALLS     2460 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5620        18.071        .17037E-03   -1.5236    
   2  Prefactor     .10000E-03    34.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    45.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9616        107.52        .13371E-03   -1.5109    
   5  Prefactor     126.63        158.58        .35772E-04   -1.3453    
   6  Prefactor     121.50        428.65        .36533E-04   -1.3499    
   7  Prefactor     8.6304        168.64        .13616E-03   -1.5120    
   8  norm          .71316        2.1489        .13093E-03   -1.5539    
   9  Prefactor     8.6335        17.203        .13645E-03   -1.5120    
  10  Prefactor     .10000E-03    1.9339        .73203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2111        17.380        .16107E-03   -1.5209    
  12  Prefactor     7.5494        13.731        .14597E-03   -1.5158    
  13  norm          4.1804        1.6948        .42754E-04   -1.5299    
  14  Prefactor     .10000E-03    20.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7329        .68959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    63.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          52.773        38.199        .55200E-04   -1.4254    
  18  Normalizat    .77246        .38818        .33842E-03   -1.0110    
  19  Prefactor     1.2631        .31389        .23166E-03   -.84410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08365e-10
Minuit parameter uncertainties:
  1  18.0884
  2  7.71219e-05
  3  0.000113104
  4  62.2219
  5  159.117
  6  440.417
  7  76.5497
  8  2.14913
  9  17.2128
  10  4.82634e-07
  11  17.3942
  12  13.7363
  13  1.69482
  14  5.25608e-06
  15  7.23071e-06
  16  8.67148e-05
  17  38.2171
  18  0.389581
  19  0.314361
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  4.826e-07  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:  1.263e+00  3.144e-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:  7.725e-01  3.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 160.150 6.285
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62918/likelihoodResults_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.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) = 2912.85784566
delta logL = -0.00217795057915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2912.85566765
delta logL = 4.98985173181e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3395       1.0000          .0000       10.000    
     3 'Normalizat'    .77231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2633       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=   2912.842     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      328 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35488        25.127        .90712E-02    .97034E-03
   2  Index         1.0996        2.3102        .44220       -.12323E-04
   3  Normalizat    .77307        .30079        .76416E-01    .43130E-03
   4  Prefactor     1.2607        .26020        .52439E-01    .54382E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.354879
  Index      = 1.09961
  Normalizat = 0.773074
  Prefactor  = 1.26066
 **********
 **   18 **HESSE 
 **********

 FCN=   2912.842     FROM HESSE     STATUS=OK            29 CALLS      357 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35488        3.8364        .19890E-03   -1.5589    
   2  Index         1.0996        1.3915        .16528E-01   -.89479    
   3  Normalizat    .77307        .35382        .33827E-03   -1.0108    
   4  Prefactor     1.2607        .30466        .23184E-03   -.84485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55869e-10
Minuit parameter uncertainties:
  1  2.33348
  2  1.44205
  3  0.354878
  4  0.305086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62918': 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) = 2912.84177515
delta logL = 0.0138925515325

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  3.549e-01  2.333e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  1.100e+00  1.442e+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:  1.261e+00  3.051e-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:  7.731e-01  3.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/62918/cmap_HighResolution_324604801_324864001_4FGL_J1040.5+0617_daily_bin329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-02 08:24:44.551801', job_id='62918', GAL2='1.26', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630596284.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.39e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='329' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:24:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 62918: <4FGL_J1040.5+0617_daily_bin329> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin329> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:11:23 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:13:44 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:13:44 2021
Terminated at Thu Sep  2 08:24:45 2021
Results reported at Thu Sep  2 08:24:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin329 160.15 6.2848 324604801 324864001 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 :                                   480.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            802 sec.

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

