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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin1411
RA = 160.15, Dec = 6.2848
tmin = 605059201, tmax = 605318401
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='71830', job_status='RUN', time_executed='2021-09-02 08:49:02.989408', time_epoch_executed='1630597742.99' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71830/ft1_4FGL_J1040.5+0617_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71830/ft2_4FGL_J1040.5+0617_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71830/ft1_4FGL_J1040.5+0617_daily_bin1411.fits outfile=/scratch/kocevski/71830/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1411.fits ra=160.15 dec=6.2848 rad=12.0 tmin=605059201.0 tmax=605318401.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 5.35
user 5.07
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71830/ft1_filtered_4FGL_J1040.5+0617_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/71830/ft2_4FGL_J1040.5+0617_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/71830/ltcube_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.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/71830/ft2_4FGL_J1040.5+0617_daily_bin1411.fits
.....................!
real 14.62
user 14.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71830/ft1_filtered_4FGL_J1040.5+0617_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/71830/ft2_4FGL_J1040.5+0617_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/71830/ltcube_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.fits outfile=/scratch/kocevski/71830/expmap_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.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/71830/ltcube_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.fits
.....................!
real 192.84
user 187.85
sys 4.53

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/71830/ft1_filtered_4FGL_J1040.5+0617_daily_bin1411.fits scfile=/scratch/kocevski/71830/ft2_4FGL_J1040.5+0617_daily_bin1411.fits outfile=/scratch/kocevski/71830/cmap_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71830/ft1_filtered_4FGL_J1040.5+0617_daily_bin1411.fits scfile=/scratch/kocevski/71830/ft2_4FGL_J1040.5+0617_daily_bin1411.fits outfile=/scratch/kocevski/71830/cmap_HighResolution_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14102E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28169E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.329       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.953       1.0000         .10000E-03   10000.    
     8 'norm      '    .87999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0706       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .65560       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .53798E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.368       1.0000         .10000E-03   10000.    
    17 'norm      '    23.149       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95698       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0783       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=   6020.194     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2259 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6233       -.24731E-05** at limit **
   2  Prefactor     .10000E-03    62.581       -.53371E-05** at limit **
   3  norm          1.8954        42.302       -.28081E-05   -.57843E-06
   4  Prefactor     .10001E-03    93.289       -.23978E-04** at limit **
   5  Prefactor     24.407        71.589       -.80606E-05   -.55153E-04
   6  Prefactor     65.262        125.09       -.61961E-05    .18886E-04
   7  Prefactor     11.029        35.077        .88919E-05    .49032E-04
   8  norm          .88110        1.3391       -.93009E-06   -.47507E-03
   9  Prefactor     9.9057        7.3945       -.54424E-06    .11424E-03
  10  Prefactor     1.0760        2.8944       -.29561E-05   -.82721E-03
  11  Prefactor     .10000E-03    7.9059       -.14736E-05** at limit **
  12  Prefactor     .10001E-03    4.9506        .23223E-06** at limit **
  13  norm          .65586        .40945        .68079E-07   -.83918E-03
  14  Prefactor     .10000E-03    2.4002       -.19624E-06** at limit **
  15  norm          .53969E-01    .60392       -.17704E-06   -.31304E-03
  16  Prefactor     13.382        16.775        .85451E-06   -.30027E-04
  17  norm          23.158        14.239        .46484E-06    .48375E-04
  18  Normalizat    .95702        .20562       -.42220E-05    .20275E-03
  19  Prefactor     1.0782        .17114        .59105E-05   -.31510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89541
  Prefactor  = 0.000100006
  Prefactor  = 24.4072
  Prefactor  = 65.2622
  Prefactor  = 11.0294
  norm       = 0.881104
  Prefactor  = 9.90568
  Prefactor  = 1.07601
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.65586
  Prefactor  = 0.0001
  norm       = 0.0539689
  Prefactor  = 13.3822
  norm       = 23.1584
  Normalizat = 0.957022
  Prefactor  = 1.0782
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.194     FROM HESSE     STATUS=OK           276 CALLS     2535 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6238        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    63.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8954        39.268        .30148E-03   -1.5433    
   4  Prefactor     .10001E-03    94.008        .40277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.407        71.065        .81212E-04   -1.4719    
   6  Prefactor     65.262        125.18        .49590E-04   -1.4091    
   7  Prefactor     11.029        35.033        .12106E-03   -1.5044    
   8  norm          .88110        1.2945        .10321E-03   -1.5520    
   9  Prefactor     9.9057        7.3474        .12732E-03   -1.5078    
  10  Prefactor     1.0760        2.8388        .20141E-03   -1.5501    
  11  Prefactor     .10000E-03    8.0405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    22.641        .30057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .65586        .40299        .37336E-04   -1.5546    
  14  Prefactor     .10000E-03    2.4066        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .53969E-01    3.2035        .11522E-02   -1.5662    
  16  Prefactor     13.382        16.754        .10955E-03   -1.4976    
  17  norm          23.158        14.224        .83254E-04   -1.4745    
  18  Normalizat    .95702        .22415        .26900E-03   -.94484    
  19  Prefactor     1.0782        .18552        .22133E-03   -.90166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20114e-08
Minuit parameter uncertainties:
  1  9.96313e-06
  2  0.000223688
  3  17.267
  4  0.00147054
  5  71.313
  6  125.688
  7  35.0983
  8  1.29459
  9  7.34803
  10  2.83913
  11  4.58076e-06
  12  0.00111245
  13  0.402994
  14  9.47688e-06
  15  0.830877
  16  16.7594
  17  14.2258
  18  0.224368
  19  0.185636
Done.

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

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.076e+00  2.839e+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.078e+00  1.856e-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.570e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71830/likelihoodResults_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.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) = 6020.0926455
delta logL = 0.10166203847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6020.08959575
delta logL = 0.104711789279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1438       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5663       1.0000          .0000       10.000    
     3 'Normalizat'    .97067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0697       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6020.090     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      252 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1438        2.5773        .18836E-02    .47548E-03
   2  Index         1.5663        1.0590        .14436E-01    .31792E-04
   3  Normalizat    .97067        .21014        .26725E-03   -.47558E-04
   4  Prefactor     1.0697        .18323        .22203E-03    .36405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14376
  Index      = 1.56631
  Normalizat = 0.970669
  Prefactor  = 1.06969
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.090     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1438        2.5793        .75345E-04   -1.5494    
   2  Index         1.5663        1.0616        .57746E-03   -.75699    
   3  Normalizat    .97067        .21031        .10690E-04   -.94020    
   4  Prefactor     1.0697        .18341        .88812E-05   -.90441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72577e-10
Minuit parameter uncertainties:
  1  2.57953
  2  1.07731
  3  0.210486
  4  0.183515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71830': 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) = 6020.08959575
delta logL = 0.104711790496

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  1.144e+00  2.580e+00  1.000e-04  1.000e+04 ( 1.000e-12)
217        Index:  1.566e+00  1.077e+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.835e-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.707e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/71830/cmap_HighResolution_605059201_605318401_4FGL_J1040.5+0617_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2021-09-02 09:02:21.914856', job_id='71830', GAL2='1.07', fit_tolerance='1e-08', EG2='0.97', EG='0.96', time_epoch_completed='1630598541.91', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.05e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1411' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 71830: <4FGL_J1040.5+0617_daily_bin1411> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin1411> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:18 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:46:19 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:46:19 2021
Terminated at Thu Sep  2 09:02:22 2021
Results reported at Thu Sep  2 09:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin1411 160.15 6.2848 605059201 605318401 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 :                                   610.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             218.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            964 sec.

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

