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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin813
RA = 160.805, Dec = 24.146
tmin = 450057601, tmax = 450316801
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='75644', job_status='RUN', time_executed='2021-09-02 09:04:38.895291', time_epoch_executed='1630598678.9' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75644

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75644/ft1_4FGL_J1043.2+2408_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75644/ft2_4FGL_J1043.2+2408_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75644/ft1_4FGL_J1043.2+2408_daily_bin813.fits outfile=/scratch/kocevski/75644/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin813.fits ra=160.805 dec=24.146 rad=12.0 tmin=450057601.0 tmax=450316801.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.58
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75644/ft2_4FGL_J1043.2+2408_daily_bin813.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/75644/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin813.fits evtable="EVENTS" outfile="/scratch/kocevski/75644/ft1_filtered_4FGL_J1043.2+2408_daily_bin813.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75644/ft1_filtered_4FGL_J1043.2+2408_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/75644/ft2_4FGL_J1043.2+2408_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/75644/ltcube_450057601_450316801_4FGL_J1043.2+2408_daily_bin813.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/75644/ft2_4FGL_J1043.2+2408_daily_bin813.fits
.....................!
real 15.96
user 15.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75644/ft1_filtered_4FGL_J1043.2+2408_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/75644/ft2_4FGL_J1043.2+2408_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/75644/ltcube_450057601_450316801_4FGL_J1043.2+2408_daily_bin813.fits outfile=/scratch/kocevski/75644/expmap_450057601_450316801_4FGL_J1043.2+2408_daily_bin813.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/75644/ltcube_450057601_450316801_4FGL_J1043.2+2408_daily_bin813.fits
.....................!
real 191.86
user 186.88
sys 4.48

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/75644/ft1_filtered_4FGL_J1043.2+2408_daily_bin813.fits scfile=/scratch/kocevski/75644/ft2_4FGL_J1043.2+2408_daily_bin813.fits outfile=/scratch/kocevski/75644/cmap_450057601_450316801_4FGL_J1043.2+2408_daily_bin813.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75644/ft1_filtered_4FGL_J1043.2+2408_daily_bin813.fits scfile=/scratch/kocevski/75644/ft2_4FGL_J1043.2+2408_daily_bin813.fits outfile=/scratch/kocevski/75644/cmap_HighResolution_450057601_450316801_4FGL_J1043.2+2408_daily_bin813.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.340       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.674       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16492E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60608E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4444       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9892       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95695       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=   5707.157     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1907 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7110        6.9878        .36168E-06    .11719E-03
   2  Prefactor     .10000E-03    .92864        .42263E-07** at limit **
   3  norm          14.338        10.354        .42692E-08   -.19597E-04
   4  Prefactor     25.668        36.757        .28099E-05    .10221E-03
   5  Prefactor     .10000E-03    66.890        .17458E-05** at limit **
   6  Prefactor     .10000E-03    9.4950       -.24127E-06** at limit **
   7  Prefactor     4.0243        2.5026        .12011E-06    .45006E-04
   8  Prefactor     25.277        10.680        .33805E-07   -.55465E-04
   9  Prefactor     .10000E-03    2.5511        .79442E-08** at limit **
  10  Prefactor     .10000E-03    23.029        .23025E-05** at limit **
  11  Prefactor     .10000E-03    5.7632        .32211E-05** at limit **
  12  Prefactor     .10000E-03    5.8789        .75731E-08** at limit **
  13  Prefactor     .10000E-03    3.9579       -.52765E-09** at limit **
  14  Prefactor     .42125E-01    7.7209        .61535E-05   -.15243E-02
  15  Prefactor     .10000E-03    3.0590       -.66665E-09** at limit **
  16  norm          7.4468        12.181        .46783E-06    .14803E-04
  17  Prefactor     3.9885        8.7256        .57533E-05    .14067E-02
  18  Normalizat    1.0317        .18404       -.16391E-05   -.27994E-03
  19  Prefactor     .95702        .18662        .44874E-06   -.12211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.71104
  Prefactor  = 0.0001
  norm       = 14.3382
  Prefactor  = 25.6685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02431
  Prefactor  = 25.2773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0421254
  Prefactor  = 0.0001
  norm       = 7.44682
  Prefactor  = 3.98854
  Normalizat = 1.03171
  Prefactor  = 0.957018
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.157     FROM HESSE     STATUS=OK           268 CALLS     2175 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7110        6.9716        .24733E-03   -1.5379    
   2  Prefactor     .10000E-03    .93833        .71077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.338        10.351        .10577E-03   -1.4950    
   4  Prefactor     25.668        36.842        .79059E-04   -1.4694    
   5  Prefactor     .10000E-03    67.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0243        2.4920        .89643E-04   -1.5307    
   8  Prefactor     25.277        10.692        .79673E-04   -1.4702    
   9  Prefactor     .10000E-03    2.5579        .11780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.214        .30998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9030        .17879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9615        .14678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .42125E-01    38.480        .16833E-02   -1.5667    
  15  Prefactor     .10000E-03    3.0679        .12903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4468        12.200        .14699E-03   -1.5162    
  17  Prefactor     3.9885        9.4357        .10096E-02   -1.5309    
  18  Normalizat    1.0317        .21047        .24078E-03   -.91975    
  19  Prefactor     .95702        .21498        .26200E-03   -.94176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73054e-08
Minuit parameter uncertainties:
  1  6.97371
  2  3.22535e-06
  3  10.3522
  4  36.8746
  5  0.000242686
  6  7.41386e-05
  7  2.49204
  8  10.693
  9  1.20244e-06
  10  0.00013719
  11  0.000425309
  12  1.77658e-05
  13  1.28772e-06
  14  2.54497
  15  2.38782e-06
  16  12.2041
  17  9.43922
  18  0.210642
  19  0.215167
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  4.024e+00  2.492e+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:  9.570e-01  2.152e-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:  1.032e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.26
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.95e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.35e-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) = 5707.08610951
delta logL = 0.0704188560148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5707.08135434
delta logL = 0.0751740205587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3666       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1056       1.0000          .0000       10.000    
     3 'Normalizat'    1.0469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94734       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=   5707.081     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      230 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3666        81.693        .48187E-02   -.44462E-03
   2  Index         2.1056        5.6523        .15923        .28045E-04
   3  Normalizat    1.0469        .19345        .40769E-01    .81960E-05
   4  Prefactor     .94733        .12696        .45606E-01    .10947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36661
  Index      = 2.10562
  Normalizat = 1.04692
  Prefactor  = 0.947333
 **********
 **   18 **HESSE 
 **********

 FCN=   5707.081     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3666        2.8276        .97089E-04   -1.5290    
   2  Index         2.1056        .55087        .80691E-02   -.61735    
   3  Normalizat    1.0469        .20580        .23925E-03   -.91475    
   4  Prefactor     .94733        .21439        .26316E-03   -.94506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.507e-11
Minuit parameter uncertainties:
  1  2.82767
  2  0.552559
  3  0.205954
  4  0.214583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75644': 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) = 5707.08135431
delta logL = 0.0751740513469

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  4.367e+00  2.828e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.106e+00  5.526e-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:  9.473e-01  2.146e-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:  1.047e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.11 +/- 0.55
Photon Flux (Free Index): 4.71e-08 +/- 4.29e-08
Energy Flux (Free Index): 2.55e-05 +/- 2.12e-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/75644/cmap_HighResolution_450057601_450316801_4FGL_J1043.2+2408_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.95e-08', energy_flux2='2.55e-05', photon_flux_error='3.68e-08', dlogl='7.52e-02', energy_flux='2.17e-05', photon_flux2='4.71e-08', job_status='DONE', time_completed='2021-09-02 09:13:29.491967', photon_index_error2='0.55', photon_index2='2.11', ts='5.26', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='1.03', time_epoch_completed='1630599209.49', return_code='0', job_id='75644', GAL2='0.95', EG2='1.05', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='4.29e-08', ts2='5.40', photon_index='2.32' WHERE bin_id='813' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:13:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 75644: <4FGL_J1043.2+2408_daily_bin813> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin813> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:18 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:01:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:01:42 2021
Terminated at Thu Sep  2 09:13:32 2021
Results reported at Thu Sep  2 09:13:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin813 160.805 24.146 450057601 450316801 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 :                                   521.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            734 sec.

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

