/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 116 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin83
RA = 160.805, Dec = 24.146
tmin = 260841601, tmax = 261100801
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='70671', job_status='RUN', time_executed='2021-09-02 08:45:01.071182', time_epoch_executed='1630597501.07' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70671/ft1_4FGL_J1043.2+2408_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70671/ft2_4FGL_J1043.2+2408_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70671/ft1_4FGL_J1043.2+2408_daily_bin83.fits outfile=/scratch/kocevski/70671/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin83.fits ra=160.805 dec=24.146 rad=12.0 tmin=260841601.0 tmax=261100801.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 1.59
user 1.41
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70671/ft2_4FGL_J1043.2+2408_daily_bin83.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/70671/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin83.fits evtable="EVENTS" outfile="/scratch/kocevski/70671/ft1_filtered_4FGL_J1043.2+2408_daily_bin83.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.50
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70671/ft1_filtered_4FGL_J1043.2+2408_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/70671/ft2_4FGL_J1043.2+2408_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/70671/ltcube_260841601_261100801_4FGL_J1043.2+2408_daily_bin83.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/70671/ft2_4FGL_J1043.2+2408_daily_bin83.fits
.....................!
real 14.69
user 14.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70671/ft1_filtered_4FGL_J1043.2+2408_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/70671/ft2_4FGL_J1043.2+2408_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/70671/ltcube_260841601_261100801_4FGL_J1043.2+2408_daily_bin83.fits outfile=/scratch/kocevski/70671/expmap_260841601_261100801_4FGL_J1043.2+2408_daily_bin83.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/70671/ltcube_260841601_261100801_4FGL_J1043.2+2408_daily_bin83.fits
.....................!
real 190.66
user 185.90
sys 4.21

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/70671/ft1_filtered_4FGL_J1043.2+2408_daily_bin83.fits scfile=/scratch/kocevski/70671/ft2_4FGL_J1043.2+2408_daily_bin83.fits outfile=/scratch/kocevski/70671/cmap_260841601_261100801_4FGL_J1043.2+2408_daily_bin83.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70671/ft1_filtered_4FGL_J1043.2+2408_daily_bin83.fits scfile=/scratch/kocevski/70671/ft2_4FGL_J1043.2+2408_daily_bin83.fits outfile=/scratch/kocevski/70671/cmap_HighResolution_260841601_261100801_4FGL_J1043.2+2408_daily_bin83.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8119       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8935       1.0000         .10000E-03   10000.    
     3 'norm      '    22.069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.435       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.095       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4022       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6634       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5133       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1148       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92196       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=   8279.729     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1614 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8124        6.8688        .14006E-06   -.30838E-04
   2  Prefactor     1.8936        2.1273        .12335E-06   -.71663E-04
   3  norm          22.069        8.2196       -.26098E-07   -.93938E-05
   4  Prefactor     17.435        19.038        .89128E-07    .18195E-04
   5  Prefactor     13.082        26.365       -.30774E-05   -.23501E-03
   6  Prefactor     .10000E-03    1.6259        .27502E-07** at limit **
   7  Prefactor     5.1951        2.2741       -.85593E-07   -.18938E-03
   8  Prefactor     .10000E-03    2.9356       -.25035E-06** at limit **
   9  Prefactor     3.4005        6.2029       -.12191E-05   -.11980E-03
  10  Prefactor     2.6503        46.367       -.55901E-05   -.14072E-03
  11  Prefactor     4.5019        6.6179        .39293E-05   -.40560E-03
  12  Prefactor     .10000E-03    3.1103        .47478E-06** at limit **
  13  Prefactor     .10000E-03    4.5820       -.38577E-06** at limit **
  14  Prefactor     2.2007        1.7661        .14514E-07   -.30891E-04
  15  Prefactor     8.5128        5.0418       -.22535E-06    .71429E-04
  16  norm          .10000E-03    6.0115        .48724E-06** at limit **
  17  Prefactor     .10000E-03    8.4921        .66004E-07** at limit **
  18  Normalizat    1.1148        .15372        .25270E-06   -.17192E-05
  19  Prefactor     .92197        .16066       -.43560E-06    .42475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81242
  Prefactor  = 1.89361
  norm       = 22.069
  Prefactor  = 17.4352
  Prefactor  = 13.082
  Prefactor  = 0.0001
  Prefactor  = 5.19511
  Prefactor  = 0.0001
  Prefactor  = 3.40046
  Prefactor  = 2.65026
  Prefactor  = 4.50195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20069
  Prefactor  = 8.51284
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11481
  Prefactor  = 0.921969
 **********
 **   18 **HESSE 
 **********

 FCN=   8279.729     FROM HESSE     STATUS=OK           270 CALLS     1884 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8124        6.8546        .16659E-03   -1.5226    
   2  Prefactor     1.8936        2.1128        .13413E-03   -1.5433    
   3  norm          22.069        8.2177        .85263E-04   -1.4768    
   4  Prefactor     17.435        19.038        .95920E-04   -1.4873    
   5  Prefactor     13.082        26.995        .11069E-03   -1.4984    
   6  Prefactor     .10000E-03    1.6307        .11327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1951        2.2733        .86216E-04   -1.5252    
   8  Prefactor     .10000E-03    2.9922        .15242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4005        6.1784        .21934E-03   -1.5339    
  10  Prefactor     2.6503        49.601        .24975E-03   -1.5382    
  11  Prefactor     4.5019        6.7174        .94901E-03   -1.5284    
  12  Prefactor     .10000E-03    3.1345        .15706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2007        1.7662        .10465E-03   -1.5411    
  15  Prefactor     8.5128        5.0420        .68694E-03   -1.5124    
  16  norm          .10000E-03    6.0553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1148        .17672        .23211E-03   -.89278    
  19  Prefactor     .92197        .18441        .27094E-03   -.95378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58319e-10
Minuit parameter uncertainties:
  1  6.8555
  2  2.11287
  3  8.21812
  4  19.0446
  5  27.0203
  6  4.61835e-08
  7  2.27337
  8  2.55724e-05
  9  6.17955
  10  22.9525
  11  6.7185
  12  3.54287e-05
  13  3.9087e-05
  14  1.76619
  15  5.04221
  16  2.98688e-05
  17  1.03328e-05
  18  0.176815
  19  0.184531
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.195e+00  2.273e+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.220e-01  1.845e-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.115e+00  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.31
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.68e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.23e-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) = 8279.69820976
delta logL = 0.0308439253804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8279.6870734
delta logL = 0.0419802877677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5506       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2118       1.0000          .0000       10.000    
     3 'Normalizat'    1.1244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91525       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=   8279.687     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5521        42.223        .42632E-02    .13980E-03
   2  Index         2.2119        3.0988        .16266        .83524E-04
   3  Normalizat    1.1243        .95061E-01    .37084E-01    .49852E-04
   4  Prefactor     .91534        .71804E-01    .45199E-01    .38214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55214
  Index      = 2.21186
  Normalizat = 1.12432
  Prefactor  = 0.915336
 **********
 **   18 **HESSE 
 **********

 FCN=   8279.687     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5521        2.7073        .91045E-04   -1.5237    
   2  Index         2.2119        .38422        .58534E-02   -.59153    
   3  Normalizat    1.1243        .17483        .23128E-03   -.88975    
   4  Prefactor     .91534        .18530        .27179E-03   -.95607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00449e-09
Minuit parameter uncertainties:
  1  2.70736
  2  0.384773
  3  0.174922
  4  0.185431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70671': 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) = 8279.68707305
delta logL = 0.041980635262

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.552e+00  2.707e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.212e+00  3.848e-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.153e-01  1.854e-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.124e+00  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.38
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.21 +/- 0.38
Photon Flux (Free Index): 6.96e-08 +/- 3.94e-08
Energy Flux (Free Index): 3.06e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/70671/cmap_HighResolution_260841601_261100801_4FGL_J1043.2+2408_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.68e-08', energy_flux2='3.06e-05', photon_flux_error='3.36e-08', dlogl='4.20e-02', energy_flux='2.81e-05', photon_flux2='6.96e-08', job_status='DONE', time_completed='2021-09-02 08:54:54.516638', photon_index_error2='0.38', photon_index2='2.21', ts='11.31', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.11', time_epoch_completed='1630598094.52', return_code='0', job_id='70671', GAL2='0.92', EG2='1.12', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.94e-08', ts2='11.38', photon_index='2.32' WHERE bin_id='83' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:54:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 70671: <4FGL_J1043.2+2408_daily_bin83> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin83> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:41:22 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:42:54 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:42:54 2021
Terminated at Thu Sep  2 08:54:55 2021
Results reported at Thu Sep  2 08:54:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin83 160.805 24.146 260841601 261100801 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 :                                   569.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            813 sec.

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

