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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin1614
RA = 160.15, Dec = 6.2848
tmin = 657676801, tmax = 657936001
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='298542', job_status='RUN', time_executed='2021-12-07 21:14:13.302903', time_epoch_executed='1638940453.3' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='1614'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298542/ft1_4FGL_J1040.5+0617_daily_bin1614.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298542/ft2_4FGL_J1040.5+0617_daily_bin1614.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298542/ft1_4FGL_J1040.5+0617_daily_bin1614.fits outfile=/scratch/kocevski/298542/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1614.fits ra=160.15 dec=6.2848 rad=12.0 tmin=657676801.0 tmax=657936001.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.56
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/298542/ft2_4FGL_J1040.5+0617_daily_bin1614.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/298542/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1614.fits evtable="EVENTS" outfile="/scratch/kocevski/298542/ft1_filtered_4FGL_J1040.5+0617_daily_bin1614.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298542/ft1_filtered_4FGL_J1040.5+0617_daily_bin1614.fits" evtable="EVENTS" scfile=/scratch/kocevski/298542/ft2_4FGL_J1040.5+0617_daily_bin1614.fits sctable="SC_DATA" outfile=/scratch/kocevski/298542/ltcube_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.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/298542/ft2_4FGL_J1040.5+0617_daily_bin1614.fits
.....................!
real 13.89
user 13.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298542/ft1_filtered_4FGL_J1040.5+0617_daily_bin1614.fits evtable="EVENTS" scfile=/scratch/kocevski/298542/ft2_4FGL_J1040.5+0617_daily_bin1614.fits sctable="SC_DATA" expcube=/scratch/kocevski/298542/ltcube_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.fits outfile=/scratch/kocevski/298542/expmap_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.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/298542/ltcube_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.fits
.....................!
real 194.89
user 187.73
sys 5.70

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/298542/ft1_filtered_4FGL_J1040.5+0617_daily_bin1614.fits scfile=/scratch/kocevski/298542/ft2_4FGL_J1040.5+0617_daily_bin1614.fits outfile=/scratch/kocevski/298542/cmap_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298542/ft1_filtered_4FGL_J1040.5+0617_daily_bin1614.fits scfile=/scratch/kocevski/298542/ft2_4FGL_J1040.5+0617_daily_bin1614.fits outfile=/scratch/kocevski/298542/cmap_HighResolution_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.256       1.0000         .10000E-03   10000.    
     3 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1603       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .85542       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7383       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4529       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0544       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0699       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=   5788.527     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1903 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5361        13.351        .35763E-07    .28957E-04
   2  Prefactor     28.196        39.985        .42951E-05    .18133E-03
   3  norm          .10000E-03    7.7375        .59113E-07** at limit **
   4  Prefactor     1.1625        34.920       -.12998E-05   -.12017E-04
   5  Prefactor     29.901        38.441        .20648E-05    .11505E-03
   6  Prefactor     .10000E-03    47.746       -.48870E-06** at limit **
   7  Prefactor     .10000E-03    12.133        .82081E-06** at limit **
   8  norm          3.6968        1.7594        .99367E-08    .10946E-03
   9  Prefactor     4.1653        6.5252        .93729E-07    .35972E-03
  10  Prefactor     .26240        2.1848       -.10904E-05    .38784E-03
  11  Prefactor     20.907        9.1092       -.15473E-07    .27807E-04
  12  Prefactor     .10001E-03    7.6332        .26102E-05** at limit **
  13  norm          .85538        .52948        .28447E-07   -.14861E-03
  14  Prefactor     .10000E-03    2.6156        .67154E-08** at limit **
  15  norm          1.7377        1.3194       -.35078E-07   -.52624E-04
  16  Prefactor     9.4196        22.946        .19317E-05    .67328E-04
  17  norm          .10000E-03    5.6503       -.45922E-07** at limit **
  18  Normalizat    1.0548        .21362        .91783E-06    .48042E-04
  19  Prefactor     1.0695        .17462       -.84784E-06    .31886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.53607
  Prefactor  = 28.1959
  norm       = 0.0001
  Prefactor  = 1.16247
  Prefactor  = 29.9008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69678
  Prefactor  = 4.1653
  Prefactor  = 0.262397
  Prefactor  = 20.907
  Prefactor  = 0.000100005
  norm       = 0.855377
  Prefactor  = 0.0001
  norm       = 1.73767
  Prefactor  = 9.41956
  norm       = 0.0001
  Normalizat = 1.05484
  Prefactor  = 1.06954
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.527     FROM HESSE     STATUS=OK           274 CALLS     2177 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5361        13.153        .12968E-03   -1.5090    
   2  Prefactor     28.196        41.243        .75368E-04   -1.4645    
   3  norm          .10000E-03    7.7468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1625        33.969        .42782E-03   -1.5492    
   5  Prefactor     29.901        38.617        .73235E-04   -1.4614    
   6  Prefactor     .10000E-03    47.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6968        1.7574        .66228E-04   -1.5323    
   9  Prefactor     4.1653        6.6737        .98726E-03   -1.5300    
  10  Prefactor     .26240        6.8307        .18451E-02   -1.5606    
  11  Prefactor     20.907        9.1744        .87588E-04   -1.4793    
  12  Prefactor     .10001E-03    11.331        .31399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .85538        .51872        .41673E-04   -1.5523    
  14  Prefactor     .10000E-03    2.6209        .12011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7377        1.3179        .72245E-04   -1.5444    
  16  Prefactor     9.4196        23.149        .13035E-03   -1.5094    
  17  norm          .10000E-03    5.6855        .17662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0548        .24579        .26963E-03   -.91215    
  19  Prefactor     1.0695        .20283        .23567E-03   -.90446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57096e-09
Minuit parameter uncertainties:
  1  13.1566
  2  41.2847
  3  1.18926e-06
  4  12.5753
  5  38.6497
  6  9.92447e-05
  7  7.17512e-05
  8  1.75739
  9  6.6749
  10  2.6774
  11  9.17505
  12  0.000487877
  13  0.518722
  14  2.0978e-06
  15  1.31793
  16  23.171
  17  2.37807e-06
  18  0.24606
  19  0.202972
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.624e-01  2.677e+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:  1.070e+00  2.030e-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.055e+00  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 160.150 6.285
Photon Flux Upper Limit: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/298542/likelihoodResults_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.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) = 5788.5249219
delta logL = 0.00197499378282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5788.52490972
delta logL = 0.00198717411877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26239       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5712       1.0000          .0000       10.000    
     3 'Normalizat'    1.0535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0701       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=   5788.525     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      249 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26953        5.4044        .47563E-01    .64442E-03
   2  Index         2.5683        1.4653        .50000        .36707E-05
   3  Normalizat    1.0535        .10184E-01    .60999E-01    .37666E-04
   4  Prefactor     1.0701        .89980E-02    .38853E-01    .40475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.269527
  Index      = 2.5683
  Normalizat = 1.05345
  Prefactor  = 1.0701
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.525     FROM HESSE     STATUS=OK            35 CALLS      284 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26953        7.2823        .16892E-02   -1.5604    
   2  Index         2.5683        3.2592        .12424E-01   -.50790    
   3  Normalizat    1.0535        .22724        .26978E-03   -.91261    
   4  Prefactor     1.0701        .19916        .23561E-03   -.90428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90201e-08
Minuit parameter uncertainties:
  1  2.80184
  2  3.67885
  3  0.227451
  4  0.199294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298542': 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) = 5788.52490536
delta logL = 0.00199153050926

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.695e-01  2.802e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  2.568e+00  3.679e+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.070e+00  1.993e-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.053e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/298542/cmap_HighResolution_657676801_657936001_4FGL_J1040.5+0617_daily_bin1614.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-12-07 21:23:36.512512', job_id='298542', GAL2='1.07', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1638941016.51', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.99e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1614' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 21:23:36 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 298542: <4FGL_J1040.5+0617_daily_bin1614> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin1614> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 21:10:14 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 21:10:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 21:10:45 2021
Terminated at Tue Dec  7 21:23:37 2021
Results reported at Tue Dec  7 21:23:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin1614 160.15 6.2848 657676801 657936001 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 :                                   561.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            803 sec.

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

