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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin666
RA = 160.805, Dec = 24.146
tmin = 411955201, tmax = 412214401
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='74534', job_status='RUN', time_executed='2021-09-02 08:57:32.885973', time_epoch_executed='1630598252.89' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74534/ft1_4FGL_J1043.2+2408_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74534/ft1_4FGL_J1043.2+2408_daily_bin666.fits outfile=/scratch/kocevski/74534/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin666.fits ra=160.805 dec=24.146 rad=12.0 tmin=411955201.0 tmax=412214401.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.63
user 5.35
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.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/74534/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/74534/ft1_filtered_4FGL_J1043.2+2408_daily_bin666.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74534/ft1_filtered_4FGL_J1043.2+2408_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/74534/ltcube_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.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/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits
.....................!
real 16.55
user 16.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74534/ft1_filtered_4FGL_J1043.2+2408_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/74534/ltcube_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.fits outfile=/scratch/kocevski/74534/expmap_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.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/74534/ltcube_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.fits
.....................!
real 191.59
user 186.62
sys 4.45

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/74534/ft1_filtered_4FGL_J1043.2+2408_daily_bin666.fits scfile=/scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits outfile=/scratch/kocevski/74534/cmap_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74534/ft1_filtered_4FGL_J1043.2+2408_daily_bin666.fits scfile=/scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits outfile=/scratch/kocevski/74534/cmap_HighResolution_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.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.56
user 0.41
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74534/ft1_filtered_4FGL_J1043.2+2408_daily_bin666.fits', '/scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits', expMap='/scratch/kocevski/74534/expmap_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.fits', expCube='/scratch/kocevski/74534/ltcube_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74534/Model_4FGL_J1043.2+2408_daily_bin666.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/74534/ft1_filtered_4FGL_J1043.2+2408_daily_bin666.fits
Spacecraft file(s): /scratch/kocevski/74534/ft2_4FGL_J1043.2+2408_daily_bin666.fits
Exposure map: /scratch/kocevski/74534/expmap_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.fits
Exposure cube: /scratch/kocevski/74534/ltcube_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74534/Model_4FGL_J1043.2+2408_daily_bin666.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) = 3532.4081819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.272       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7649       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.365       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.628       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .41155       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3823       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=   3532.370     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1620 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.273        7.3413        .20614E-06   -.66129E-04
   2  Prefactor     2.7648        3.1987        .11938E-06   -.31135E-03
   3  norm          .10000E-03    3.5259       -.12817E-07** at limit **
   4  Prefactor     11.398        42.108        .78127E-04   -.35493E-06
   5  Prefactor     .10000E-03    30.046        .12929E-05** at limit **
   6  Prefactor     13.595        10.310       -.73558E-06   -.10514E-03
   7  Prefactor     2.6633        2.3736        .16669E-06   -.10691E-03
   8  Prefactor     20.811        10.858        .58006E-06   -.40752E-04
   9  Prefactor     10.455        11.148        .56408E-06   -.61115E-04
  10  Prefactor     .10000E-03    10.287        .16146E-05** at limit **
  11  Prefactor     .10000E-03    13.489        .12421E-05** at limit **
  12  Prefactor     .10000E-03    5.1733        .26458E-06** at limit **
  13  Prefactor     .10000E-03    12.379       -.28675E-05** at limit **
  14  Prefactor     .10000E-03    1.4956        .71419E-07** at limit **
  15  Prefactor     .10000E-03    3.1450        .55410E-07** at limit **
  16  norm          19.629        16.539        .12393E-05   -.23278E-04
  17  Prefactor     .10000E-03    5.9462       -.30175E-06** at limit **
  18  Normalizat    .41172        .21534       -.37896E-05   -.12638E-03
  19  Prefactor     1.3821        .23244       -.26873E-05    .61400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2726
  Prefactor  = 2.76483
  norm       = 0.0001
  Prefactor  = 11.3979
  Prefactor  = 0.0001
  Prefactor  = 13.5949
  Prefactor  = 2.66326
  Prefactor  = 20.8113
  Prefactor  = 10.4547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.629
  Prefactor  = 0.0001
  Normalizat = 0.411716
  Prefactor  = 1.38214
 **********
 **   18 **HESSE 
 **********

 FCN=   3532.370     FROM HESSE     STATUS=OK           266 CALLS     1886 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.273        7.3346        .12502E-03   -1.5067    
   2  Prefactor     2.7648        3.1856        .10735E-03   -1.5375    
   3  norm          .10000E-03    3.5319        .10898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.398        42.047        .11884E-03   -1.5033    
   5  Prefactor     .10000E-03    30.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.595        10.293        .10862E-03   -1.4970    
   7  Prefactor     2.6633        2.3659        .82201E-04   -1.5382    
   8  Prefactor     20.811        10.848        .87794E-04   -1.4795    
   9  Prefactor     10.455        11.092        .12393E-03   -1.5061    
  10  Prefactor     .10000E-03    10.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1845        .13202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5182        .70943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1501        .10294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.629        16.528        .90405E-04   -1.4822    
  17  Prefactor     .10000E-03    5.9597        .14155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .41172        .23855        .32465E-03   -1.1670    
  19  Prefactor     1.3821        .26088        .21116E-03   -.80896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81333e-10
Minuit parameter uncertainties:
  1  7.33525
  2  3.18579
  3  2.25908e-08
  4  42.1571
  5  5.00719e-05
  6  10.2946
  7  2.36598
  8  10.8491
  9  11.0943
  10  1.50655e-05
  11  3.23557e-05
  12  1.39121e-05
  13  3.04166e-05
  14  9.72285e-06
  15  7.30608e-06
  16  16.532
  17  1.3153e-05
  18  0.239142
  19  0.261127
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.663e+00  2.366e+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.382e+00  2.611e-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:  4.117e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.02
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.28e-05

TS (Fixed Index): 3.02
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74534/likelihoodResults_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.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) = 3532.1432384
delta logL = 0.226894540717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3532.13121091
delta logL = 0.238922031084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0317       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7566       1.0000          .0000       10.000    
     3 'Normalizat'    .43517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3660       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=   3532.131     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0310        147.05        .58263E-02   -.21202E-03
   2  Index         1.7559        5.9312        .24383       -.21866E-04
   3  Normalizat    .43515        .35783        .71426E-01    .33060E-04
   4  Prefactor     1.3661        .30748        .48007E-01    .66409E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03096
  Index      = 1.75589
  Normalizat = 0.43515
  Prefactor  = 1.36606
 **********
 **   18 **HESSE 
 **********

 FCN=   3532.131     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0310        2.9886        .47815E-03   -1.5360    
   2  Index         1.7559        .73487        .83576E-02   -.70604    
   3  Normalizat    .43515        .22718        .31624E-03   -1.1552    
   4  Prefactor     1.3661        .25929        .21221E-03   -.81364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14726e-12
Minuit parameter uncertainties:
  1  2.98879
  2  0.739513
  3  0.227668
  4  0.259538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74534': 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) = 3532.1312105
delta logL = 0.238922445905

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.031e+00  2.989e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.756e+00  7.395e-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.366e+00  2.595e-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:  4.351e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.76 +/- 0.74
Photon Flux (Free Index): 2.15e-08 +/- 2.95e-08
Energy Flux (Free Index): 2.95e-05 +/- 4.74e-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/74534/cmap_HighResolution_411955201_412214401_4FGL_J1043.2+2408_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.77e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='2.95e-05', photon_flux_error='3.49e-08', dlogl='2.39e-01', energy_flux='1.44e-05', photon_flux2='2.15e-08', job_status='DONE', time_completed='2021-09-02 09:05:29.728135', photon_index_error2='0.74', photon_index2='1.76', ts='3.02', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='4.74e-05', EG='0.41', time_epoch_completed='1630598729.73', return_code='0', job_id='74534', GAL2='1.37', EG2='0.44', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='2.95e-08', ts2='3.51', photon_index='2.32' WHERE bin_id='666' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 74534: <4FGL_J1043.2+2408_daily_bin666> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin666> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:29 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:57:21 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:57:21 2021
Terminated at Thu Sep  2 09:05:30 2021
Results reported at Thu Sep  2 09:05:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin666 160.805 24.146 411955201 412214401 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 :                                   471.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   489 sec.
    Turnaround time :                            541 sec.

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

