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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin844
RA = 160.805, Dec = 24.146
tmin = 458092801, tmax = 458352001
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='75686', job_status='RUN', time_executed='2021-09-02 09:05:14.134450', time_epoch_executed='1630598714.13' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75686

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75686/ft1_4FGL_J1043.2+2408_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75686/ft2_4FGL_J1043.2+2408_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75686/ft1_4FGL_J1043.2+2408_daily_bin844.fits outfile=/scratch/kocevski/75686/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin844.fits ra=160.805 dec=24.146 rad=12.0 tmin=458092801.0 tmax=458352001.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.66
user 3.39
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75686/ft1_filtered_4FGL_J1043.2+2408_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/75686/ft2_4FGL_J1043.2+2408_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/75686/ltcube_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.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/75686/ft2_4FGL_J1043.2+2408_daily_bin844.fits
.....................!
real 17.65
user 17.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75686/ft1_filtered_4FGL_J1043.2+2408_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/75686/ft2_4FGL_J1043.2+2408_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/75686/ltcube_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.fits outfile=/scratch/kocevski/75686/expmap_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.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/75686/ltcube_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.fits
.....................!
real 194.62
user 188.67
sys 5.42

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/75686/ft1_filtered_4FGL_J1043.2+2408_daily_bin844.fits scfile=/scratch/kocevski/75686/ft2_4FGL_J1043.2+2408_daily_bin844.fits outfile=/scratch/kocevski/75686/cmap_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75686/ft1_filtered_4FGL_J1043.2+2408_daily_bin844.fits scfile=/scratch/kocevski/75686/ft2_4FGL_J1043.2+2408_daily_bin844.fits outfile=/scratch/kocevski/75686/cmap_HighResolution_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.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.59
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20472E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    28.867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11239E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.640       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.540       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79655E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9526       1.0000         .10000E-03   10000.    
    16 'norm      '    12.594       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4614       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80530       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1065       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=   5452.751     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1678 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8131       -.86861E-06** at limit **
   2  Prefactor     .10001E-03    1.1721       -.39035E-06** at limit **
   3  norm          28.864        11.013       -.13533E-05    .25333E-03
   4  Prefactor     1.6522        269.20       -.13584E-03    .74058E-05
   5  Prefactor     .10000E-03    19.190       -.16820E-05** at limit **
   6  Prefactor     10.055        8.3401       -.37777E-06    .28796E-03
   7  Prefactor     2.1682        1.9922       -.14628E-07    .17630E-03
   8  Prefactor     .10000E-03    3.1508        .17361E-06** at limit **
   9  Prefactor     .10000E-03    9.5808       -.79503E-05** at limit **
  10  Prefactor     .10000E-03    6.7661        .69777E-06** at limit **
  11  Prefactor     .10000E-03    9.3066        .86067E-05** at limit **
  12  Prefactor     20.627        13.362       -.60944E-06    .32358E-03
  13  Prefactor     33.554        20.411       -.55823E-05    .14976E-03
  14  Prefactor     .25607E-01    1.5218       -.60708E-06    .34547E-03
  15  Prefactor     5.9588        11.513       -.48032E-05   -.78177E-04
  16  norm          12.594        11.415       -.81395E-06    .44890E-04
  17  Prefactor     6.4490        12.799        .17772E-05   -.88604E-05
  18  Normalizat    .80535        .18251        .56479E-05    .59507E-03
  19  Prefactor     1.1064        .18517        .13679E-05    .68050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 28.8642
  Prefactor  = 1.65216
  Prefactor  = 0.0001
  Prefactor  = 10.0551
  Prefactor  = 2.16816
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.6269
  Prefactor  = 33.5536
  Prefactor  = 0.0256068
  Prefactor  = 5.95881
  norm       = 12.5943
  Prefactor  = 6.44898
  Normalizat = 0.805354
  Prefactor  = 1.1064
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.751     FROM HESSE     STATUS=OK           272 CALLS     1950 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    13.415        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          28.864        11.014        .74568E-04   -1.4633    
   4  Prefactor     1.6522        277.01        .32237E-03   -1.5451    
   5  Prefactor     .10000E-03    19.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.055        8.3303        .12638E-03   -1.5074    
   7  Prefactor     2.1682        1.9841        .94504E-04   -1.5413    
   8  Prefactor     .10000E-03    3.1778        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.627        14.197        .88162E-04   -1.4799    
  13  Prefactor     33.554        20.363        .69192E-04   -1.4549    
  14  Prefactor     .25607E-01    5.4100        .28557E-01   -1.5676    
  15  Prefactor     5.9588        11.480        .16458E-03   -1.5220    
  16  norm          12.594        11.418        .11288E-03   -1.4998    
  17  Prefactor     6.4490        12.728        .15789E-03   -1.5200    
  18  Normalizat    .80535        .21152        .26025E-03   -.99870    
  19  Prefactor     1.1064        .21582        .24315E-03   -.89262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51035e-09
Minuit parameter uncertainties:
  1  2.32415e-05
  2  0.000766836
  3  11.0146
  4  42.9884
  5  3.80265e-05
  6  8.33126
  7  1.98417
  8  1.39329e-05
  9  0.000206836
  10  1.20421e-05
  11  0.000141011
  12  14.1991
  13  20.3674
  14  0.743014
  15  11.484
  16  11.4204
  17  12.7333
  18  0.211735
  19  0.215995
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.168e+00  1.984e+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.106e+00  2.160e-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:  8.054e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/75686/likelihoodResults_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.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) = 5452.47673474
delta logL = 0.273838956026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5452.44256818
delta logL = 0.308005510496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5465       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5501       1.0000          .0000       10.000    
     3 'Normalizat'    .82697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0969       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=   5452.443     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5407        1.5936        .85663E-02   -.32755E-03
   2  Index         1.5488        .50854        .28307       -.40938E-04
   3  Normalizat    .82671        .16990        .43961E-01    .52483E-05
   4  Prefactor     1.0971        .18359        .55217E-01    .32300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54072
  Index      = 1.5488
  Normalizat = 0.826715
  Prefactor  = 1.09714
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.443     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5407        2.1944        .92306E-04   -1.5460    
   2  Index         1.5488        .85414        .10106E-01   -.76182    
   3  Normalizat    .82671        .19711        .25734E-03   -.99085    
   4  Prefactor     1.0971        .21320        .24414E-03   -.89558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35979e-09
Minuit parameter uncertainties:
  1  2.19454
  2  0.862276
  3  0.197281
  4  0.213364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75686': 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) = 5452.44256392
delta logL = 0.308009773107

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.541e+00  2.195e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.549e+00  8.623e-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.097e+00  2.134e-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:  8.267e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.55 +/- 0.86
Photon Flux (Free Index): 9.25e-09 +/- 1.69e-08
Energy Flux (Free Index): 2.48e-05 +/- 4.31e-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/75686/cmap_HighResolution_458092801_458352001_4FGL_J1043.2+2408_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='2.48e-05', photon_flux_error='2.93e-08', dlogl='3.08e-01', energy_flux='1.17e-05', photon_flux2='9.25e-09', job_status='DONE', time_completed='2021-09-02 09:14:26.702757', photon_index_error2='0.86', photon_index2='1.55', ts='3.03', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='4.31e-05', EG='0.81', time_epoch_completed='1630599266.7', return_code='0', job_id='75686', GAL2='1.10', EG2='0.83', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='1.69e-08', ts2='3.65', photon_index='2.32' WHERE bin_id='844' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 75686: <4FGL_J1043.2+2408_daily_bin844> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin844> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:22 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:01:53 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:53 2021
Terminated at Thu Sep  2 09:14:27 2021
Results reported at Thu Sep  2 09:14:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin844 160.805 24.146 458092801 458352001 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            785 sec.

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

