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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin483
RA = 160.805, Dec = 24.146
tmin = 364521601, tmax = 364780801
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='73086', job_status='RUN', time_executed='2021-09-02 08:54:22.811975', time_epoch_executed='1630598062.81' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73086/ft1_4FGL_J1043.2+2408_daily_bin483.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73086/ft1_4FGL_J1043.2+2408_daily_bin483.fits outfile=/scratch/kocevski/73086/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin483.fits ra=160.805 dec=24.146 rad=12.0 tmin=364521601.0 tmax=364780801.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 2.71
user 2.52
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.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/73086/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin483.fits evtable="EVENTS" outfile="/scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.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.47
user 0.31
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits" evtable="EVENTS" scfile=/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits sctable="SC_DATA" outfile=/scratch/kocevski/73086/ltcube_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.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/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits
.....................!
real 15.62
user 15.30
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits sctable="SC_DATA" expcube=/scratch/kocevski/73086/ltcube_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.fits outfile=/scratch/kocevski/73086/expmap_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.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/73086/ltcube_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.fits
.....................!
real 156.73
user 152.66
sys 3.43

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

Setting source of interest to:
4FGL J1043.2+2408 @ 160.805 24.146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits scfile=/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits outfile=/scratch/kocevski/73086/cmap_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.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.805 yref=24.146 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.50
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits scfile=/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits outfile=/scratch/kocevski/73086/cmap_HighResolution_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.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.805 yref=24.146 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.51
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73086/Model_4FGL_J1043.2+2408_daily_bin483.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/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits.....................!
real 39.18
user 37.99
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits', '/scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits', expMap='/scratch/kocevski/73086/expmap_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.fits', expCube='/scratch/kocevski/73086/ltcube_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73086/Model_4FGL_J1043.2+2408_daily_bin483.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1043.2+2408'

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.079e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73086/ft1_filtered_4FGL_J1043.2+2408_daily_bin483.fits
Spacecraft file(s): /scratch/kocevski/73086/ft2_4FGL_J1043.2+2408_daily_bin483.fits
Exposure map: /scratch/kocevski/73086/expmap_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.fits
Exposure cube: /scratch/kocevski/73086/ltcube_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73086/Model_4FGL_J1043.2+2408_daily_bin483.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) = 5019.96122071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18018E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6312       1.0000         .10000E-03   10000.    
     3 'norm      '    .13519E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4915       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0912       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7014       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2869       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.3393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.183       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .68664       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1468       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5019.868     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1663 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    4.7008       -.17180E-05** at limit **
   2  Prefactor     3.6315        2.2913       -.33306E-07    .14748E-03
   3  norm          .10000E-03    11.655        .52578E-06** at limit **
   4  Prefactor     21.497        20.883       -.56685E-06    .50343E-04
   5  Prefactor     .10000E-03    14.203        .97867E-06** at limit **
   6  Prefactor     .10000E-03    12.001        .56726E-05** at limit **
   7  Prefactor     4.4932        2.4372        .30058E-06    .80877E-03
   8  Prefactor     2.0890        1.5254        .10934E-06   -.40590E-03
   9  Prefactor     4.3340        7.0279        .10920E-05    .65411E-03
  10  Prefactor     .10000E-03    5.8228        .31400E-07** at limit **
  11  Prefactor     .10000E-03    15.035       -.17713E-05** at limit **
  12  Prefactor     8.7030        11.687        .13687E-07    .30869E-04
  13  Prefactor     .10000E-03    4.5787       -.17165E-07** at limit **
  14  Prefactor     2.2854        3.2646       -.82378E-07   -.13364E-06
  15  Prefactor     .10000E-03    1.6945       -.15797E-07** at limit **
  16  norm          9.3381        9.9322       -.13347E-06    .22560E-04
  17  Prefactor     27.182        12.760       -.30493E-07    .27424E-04
  18  Normalizat    .68670        .17436        .70414E-06    .31540E-03
  19  Prefactor     1.1468        .18741        .14440E-06    .34701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Prefactor  = 3.63152
  norm       = 0.000100001
  Prefactor  = 21.4975
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.49325
  Prefactor  = 2.08902
  Prefactor  = 4.33404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.703
  Prefactor  = 0.0001
  Prefactor  = 2.28542
  Prefactor  = 0.0001
  norm       = 9.33812
  Prefactor  = 27.1816
  Normalizat = 0.686701
  Prefactor  = 1.14685
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.868     FROM HESSE     STATUS=OK           272 CALLS     1935 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    39.479        .26813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6315        2.2857        .81992E-04   -1.5327    
   3  norm          .10000E-03    11.900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.497        20.853        .86392E-04   -1.4780    
   5  Prefactor     .10000E-03    14.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.123        .25626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4932        2.4105        .76375E-04   -1.5284    
   8  Prefactor     2.0890        7.5066        .14273E-02   -1.5419    
   9  Prefactor     4.3340        7.1117        .19346E-03   -1.5292    
  10  Prefactor     .10000E-03    5.8244        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7030        11.567        .13589E-03   -1.5118    
  13  Prefactor     .10000E-03    4.5854        .14804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2854        3.2187        .13308E-03   -1.5406    
  15  Prefactor     .10000E-03    1.6955        .90066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.3381        9.9378        .13114E-03   -1.5097    
  17  Prefactor     27.182        12.762        .76838E-04   -1.4665    
  18  Normalizat    .68670        .19639        .25026E-03   -1.0442    
  19  Prefactor     1.1468        .21296        .22568E-03   -.87983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79901e-09
Minuit parameter uncertainties:
  1  0.00196887
  2  2.28577
  3  0.00016141
  4  20.8602
  5  5.57588e-05
  6  0.00019817
  7  2.41058
  8  7.51001
  9  7.11306
  10  5.20432e-06
  11  0.000100168
  12  11.5699
  13  7.06501e-06
  14  3.21892
  15  1.26702e-06
  16  9.93954
  17  12.7631
  18  0.196595
  19  0.213115
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  4.493e+00  2.411e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.147e+00  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  6.867e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.37
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 6.64e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.30e-05

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) = 5019.74117067
delta logL = 0.126956610319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.73471717
delta logL = 0.133410108519

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5019.735     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      226 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5683        31.324        .53487E-02   -.38388E-03
   2  Index         2.5970        3.2272        .12191        .49593E-04
   3  Normalizat    .66653        .85975E-01    .41842E-01    .41751E-04
   4  Prefactor     1.1610        .75531E-01    .35626E-01   -.23163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56828
  Index      = 2.59701
  Normalizat = 0.666526
  Prefactor  = 1.16098
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.735     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5683        2.8853        .63791E-04   -1.5330    
   2  Index         2.5970        .58059        .46784E-02   -.50134    
   3  Normalizat    .66653        .19190        .25364E-03   -1.0523    
   4  Prefactor     1.1610        .21473        .22446E-03   -.87541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02296e-11
Minuit parameter uncertainties:
  1  2.88539
  2  0.582302
  3  0.192094
  4  0.214888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73086': 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) = 5019.73471717
delta logL = 0.133410108882

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.568e+00  2.885e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.597e+00  5.823e-01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.161e+00  2.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  6.665e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.65
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.60 +/- 0.58
Photon Flux (Free Index): 8.14e-08 +/- 4.86e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.17e-05

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/73086/cmap_HighResolution_364521601_364780801_4FGL_J1043.2+2408_daily_bin483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.64e-08', energy_flux2='2.14e-05', photon_flux_error='3.56e-08', dlogl='1.33e-01', energy_flux='2.43e-05', photon_flux2='8.14e-08', job_status='DONE', time_completed='2021-09-02 09:01:17.017281', photon_index_error2='0.58', photon_index2='2.60', ts='8.37', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='0.69', time_epoch_completed='1630598477.02', return_code='0', job_id='73086', GAL2='1.16', EG2='0.67', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.86e-08', ts2='8.65', photon_index='2.32' WHERE bin_id='483' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:01:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 73086: <4FGL_J1043.2+2408_daily_bin483> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin483> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:51:15 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:51:25 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:51:25 2021
Terminated at Thu Sep  2 09:01:17 2021
Results reported at Thu Sep  2 09:01:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin483 160.805 24.146 364521601 364780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1043.2+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   404.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            602 sec.

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

