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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin1149
RA = 160.15, Dec = 6.2848
tmin = 537148801, tmax = 537408001
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='68096', job_status='RUN', time_executed='2021-09-02 08:35:43.603477', time_epoch_executed='1630596943.6' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68096/ft1_4FGL_J1040.5+0617_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68096/ft2_4FGL_J1040.5+0617_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68096/ft1_4FGL_J1040.5+0617_daily_bin1149.fits outfile=/scratch/kocevski/68096/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1149.fits ra=160.15 dec=6.2848 rad=12.0 tmin=537148801.0 tmax=537408001.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.64
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68096/ft1_filtered_4FGL_J1040.5+0617_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/68096/ft2_4FGL_J1040.5+0617_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/68096/ltcube_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.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/68096/ft2_4FGL_J1040.5+0617_daily_bin1149.fits
.....................!
real 17.16
user 16.34
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68096/ft1_filtered_4FGL_J1040.5+0617_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/68096/ft2_4FGL_J1040.5+0617_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/68096/ltcube_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.fits outfile=/scratch/kocevski/68096/expmap_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.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/68096/ltcube_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.fits
.....................!
real 194.10
user 188.99
sys 4.26

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/68096/ft1_filtered_4FGL_J1040.5+0617_daily_bin1149.fits scfile=/scratch/kocevski/68096/ft2_4FGL_J1040.5+0617_daily_bin1149.fits outfile=/scratch/kocevski/68096/cmap_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68096/ft1_filtered_4FGL_J1040.5+0617_daily_bin1149.fits scfile=/scratch/kocevski/68096/ft2_4FGL_J1040.5+0617_daily_bin1149.fits outfile=/scratch/kocevski/68096/cmap_HighResolution_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.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.56
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    33.026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.8099       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.557       1.0000         .10000E-03   10000.    
    13 'norm      '    .45802       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .74800E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.410       1.0000         .10000E-03   10000.    
    17 'norm      '    9.8822       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .77935       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2373       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=   7445.315     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1906 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5594        .45075E-06** at limit **
   2  Prefactor     .10000E-03    42.871       -.26229E-05** at limit **
   3  norm          33.027        18.322        .30147E-06   -.10055E-03
   4  Prefactor     .10000E-03    4.6955        .35948E-05** at limit **
   5  Prefactor     39.310        45.671        .54655E-05   -.18884E-04
   6  Prefactor     .10000E-03    22.505        .31978E-06** at limit **
   7  Prefactor     .10000E-03    6.9121        .10339E-05** at limit **
   8  norm          5.8096        1.6964       -.97393E-07    .54176E-05
   9  Prefactor     .10000E-03    5.8241       -.94728E-06** at limit **
  10  Prefactor     1.0003        2.1593       -.80689E-06   -.13504E-02
  11  Prefactor     .10000E-03    3.5336        .62118E-06** at limit **
  12  Prefactor     11.559        7.0127        .14306E-06    .18045E-03
  13  norm          .45821        .40922        .26851E-07    .48045E-03
  14  Prefactor     .10000E-03    4.6575       -.40506E-05** at limit **
  15  norm          .90043E-02    .44595       -.54177E-07    .35522E-03
  16  Prefactor     27.412        18.546        .10742E-06    .39175E-04
  17  norm          9.8819        9.9978        .27136E-06   -.24126E-04
  18  Normalizat    .77924        .17437       -.10122E-05    .12692E-03
  19  Prefactor     1.2373        .14860        .93589E-07    .10937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.0275
  Prefactor  = 0.0001
  Prefactor  = 39.3103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.80961
  Prefactor  = 0.0001
  Prefactor  = 1.00026
  Prefactor  = 0.0001
  Prefactor  = 11.5586
  norm       = 0.45821
  Prefactor  = 0.0001
  norm       = 0.00900433
  Prefactor  = 27.412
  norm       = 9.88194
  Normalizat = 0.779236
  Prefactor  = 1.23734
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.315     FROM HESSE     STATUS=OK           278 CALLS     2184 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.027        18.269        .69727E-04   -1.4558    
   4  Prefactor     .10000E-03    4.5967        .18021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.310        45.396        .63932E-04   -1.4453    
   6  Prefactor     .10000E-03    22.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.8096        1.6968        .58089E-04   -1.5226    
   9  Prefactor     .10000E-03    5.9998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0003        2.0975        .18230E-02   -1.5508    
  11  Prefactor     .10000E-03    3.5659        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.559        6.9348        .11784E-03   -1.5028    
  13  norm          .45821        .38952        .49627E-03   -1.5573    
  14  Prefactor     .10000E-03    4.5704        .17906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .90043E-02    1.4600        .19905E-01   -1.5689    
  16  Prefactor     27.412        18.551        .76519E-04   -1.4660    
  17  norm          9.8819        9.9927        .12747E-03   -1.5079    
  18  Normalizat    .77924        .20206        .30333E-03   -1.0084    
  19  Prefactor     1.2373        .17443        .21863E-03   -.85190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4264e-09
Minuit parameter uncertainties:
  1  3.8467e-05
  2  4.98453e-05
  3  18.2718
  4  1.70844e-05
  5  45.4361
  6  4.39218e-05
  7  1.34335e-05
  8  1.69683
  9  2.35704e-05
  10  2.09766
  11  4.71192e-06
  12  6.9353
  13  0.389525
  14  1.39068e-05
  15  0.228042
  16  18.5548
  17  9.9944
  18  0.202256
  19  0.174509
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.000e+00  2.098e+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.237e+00  1.745e-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.792e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/68096/likelihoodResults_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.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) = 7445.21121596
delta logL = 0.103934334989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7445.19243365
delta logL = 0.122716642693

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65427       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2523       1.0000          .0000       10.000    
     3 'Normalizat'    .75378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2509       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=   7445.192     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65277        13.804        .11885E-01    .16134E-02
   2  Index         3.2536        3.0104        .21586        .79333E-04
   3  Normalizat    .75388        .29616E-01    .69581E-01    .17584E-04
   4  Prefactor     1.2508        .26350E-01    .49220E-01   -.14153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.65277
  Index      = 3.25362
  Normalizat = 0.753876
  Prefactor  = 1.25083
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.192     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65277        11.241        .95383E-04   -1.5546    
   2  Index         3.2536        6.6259        .89543E-02   -.35680    
   3  Normalizat    .75388        .22193        .30791E-03   -1.0180    
   4  Prefactor     1.2508        .18942        .21759E-03   -.84781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48908e-07
Minuit parameter uncertainties:
  1  5.41839
  2  5.56455
  3  0.222197
  4  0.189521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68096': 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) = 7445.19243318
delta logL = 0.122717111869

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  6.528e-01  5.418e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  3.254e+00  5.565e+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.251e+00  1.895e-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.539e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/68096/cmap_HighResolution_537148801_537408001_4FGL_J1040.5+0617_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-02 08:46:38.683687', job_id='68096', GAL2='1.25', fit_tolerance='1e-08', EG2='0.75', EG='0.78', time_epoch_completed='1630597598.68', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.23e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1149' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 68096: <4FGL_J1040.5+0617_daily_bin1149> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin1149> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 08:31:36 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:33:40 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:33:40 2021
Terminated at Thu Sep  2 08:46:39 2021
Results reported at Thu Sep  2 08:46:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin1149 160.15 6.2848 537148801 537408001 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            903 sec.

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

