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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin579
RA = 160.805, Dec = 24.146
tmin = 389404801, tmax = 389664001
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='74385', job_status='RUN', time_executed='2021-09-02 08:59:29.334834', time_epoch_executed='1630598369.33' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74385

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74385/ft1_4FGL_J1043.2+2408_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74385/ft2_4FGL_J1043.2+2408_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74385/ft1_4FGL_J1043.2+2408_daily_bin579.fits outfile=/scratch/kocevski/74385/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin579.fits ra=160.805 dec=24.146 rad=12.0 tmin=389404801.0 tmax=389664001.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 4.13
user 3.84
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74385/ft1_filtered_4FGL_J1043.2+2408_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/74385/ft2_4FGL_J1043.2+2408_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/74385/ltcube_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.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/74385/ft2_4FGL_J1043.2+2408_daily_bin579.fits
.....................!
real 18.09
user 17.62
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74385/ft1_filtered_4FGL_J1043.2+2408_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/74385/ft2_4FGL_J1043.2+2408_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/74385/ltcube_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.fits outfile=/scratch/kocevski/74385/expmap_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.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/74385/ltcube_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.fits
.....................!
real 192.92
user 187.26
sys 5.02

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/74385/ft1_filtered_4FGL_J1043.2+2408_daily_bin579.fits scfile=/scratch/kocevski/74385/ft2_4FGL_J1043.2+2408_daily_bin579.fits outfile=/scratch/kocevski/74385/cmap_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74385/ft1_filtered_4FGL_J1043.2+2408_daily_bin579.fits scfile=/scratch/kocevski/74385/ft2_4FGL_J1043.2+2408_daily_bin579.fits outfile=/scratch/kocevski/74385/cmap_HighResolution_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8658       1.0000         .10000E-03   10000.    
     3 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6805       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1862       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49004E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0344       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=   6096.188     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1903 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3567        8.2103       -.38752E-05   -.83576E-03
   2  Prefactor     3.8664        2.8345        .27648E-06   -.73442E-04
   3  norm          .10000E-03    23.173       -.66756E-06** at limit **
   4  Prefactor     8.6960        64.612        .25652E-04    .42576E-06
   5  Prefactor     16.660        44.114       -.81137E-04    .58455E-05
   6  Prefactor     .10000E-03    3.0861       -.41006E-06** at limit **
   7  Prefactor     2.0696        2.3717       -.34339E-06   -.53875E-03
   8  Prefactor     5.1001        5.5928       -.68176E-06   -.17964E-03
   9  Prefactor     .10000E-03    2.6681       -.30186E-06** at limit **
  10  Prefactor     36.256        22.137       -.73059E-06    .12457E-04
  11  Prefactor     .10000E-03    4.1605        .10315E-06** at limit **
  12  Prefactor     .10000E-03    8.5153        .14939E-05** at limit **
  13  Prefactor     .10000E-03    12.274       -.52155E-06** at limit **
  14  Prefactor     9.1892        4.4853        .15808E-05   -.13070E-03
  15  Prefactor     .10000E-03    6.8379        .83291E-06** at limit **
  16  norm          .10000E-03    7.4236       -.33492E-05** at limit **
  17  Prefactor     .10019E-03    7.1547       -.71472E-07** at limit **
  18  Normalizat    1.1848        .18172        .14559E-05    .76466E-04
  19  Prefactor     1.0345        .18988        .10097E-05    .10417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.35671
  Prefactor  = 3.86644
  norm       = 0.0001
  Prefactor  = 8.69601
  Prefactor  = 16.6604
  Prefactor  = 0.0001
  Prefactor  = 2.06963
  Prefactor  = 5.10009
  Prefactor  = 0.0001
  Prefactor  = 36.2557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.18916
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100191
  Normalizat = 1.18478
  Prefactor  = 1.03448
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.188     FROM HESSE     STATUS=OK           278 CALLS     2181 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3567        8.3536        .37498E-03   -1.5475    
   2  Prefactor     3.8664        2.8315        .10765E-03   -1.5315    
   3  norm          .10000E-03    24.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6960        64.466        .13605E-03   -1.5118    
   5  Prefactor     16.660        44.082        .97965E-04   -1.4891    
   6  Prefactor     .10000E-03    3.1017        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0696        2.3587        .12263E-03   -1.5420    
   8  Prefactor     5.1001        5.5911        .17802E-03   -1.5256    
   9  Prefactor     .10000E-03    2.6744        .12453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.256        22.139        .66562E-04   -1.4503    
  11  Prefactor     .10000E-03    4.1779        .15552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1892        4.4922        .10828E-03   -1.5102    
  15  Prefactor     .10000E-03    6.9222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10019E-03    9.8145        .70918E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1848        .21646        .24427E-03   -.87075    
  19  Prefactor     1.0345        .22560        .27388E-03   -.91589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79596e-09
Minuit parameter uncertainties:
  1  6.73418
  2  2.83156
  3  1.98639e-05
  4  47.4252
  5  44.1686
  6  1.12162e-05
  7  2.35877
  8  5.59165
  9  6.23208e-06
  10  22.1439
  11  7.57702e-06
  12  6.17539e-05
  13  4.2255e-05
  14  4.49232
  15  2.97613e-05
  16  3.08089e-05
  17  0.00273527
  18  0.216621
  19  0.22581
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.070e+00  2.359e+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.034e+00  2.258e-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.185e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/74385/likelihoodResults_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.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) = 6096.15079951
delta logL = 0.0373871177753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6096.13944518
delta logL = 0.0487414460358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7097       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5736       1.0000          .0000       10.000    
     3 'Normalizat'    1.1762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       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=   6096.139     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7053        52.022        .80378E-02    .51602E-03
   2  Index         2.5745        6.2618        .16229        .76573E-04
   3  Normalizat    1.1762        .58896E-01    .55414E-01   -.10424E-04
   4  Prefactor     1.0405        .60495E-01    .61767E-01   -.41167E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7053
  Index      = 2.57451
  Normalizat = 1.17619
  Prefactor  = 1.04053
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.139     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7053        2.6161        .10555E-03   -1.5447    
   2  Index         2.5745        .91469        .88175E-02   -.50647    
   3  Normalizat    1.1762        .21286        .24504E-03   -.87342    
   4  Prefactor     1.0405        .22369        .27317E-03   -.91390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29465e-09
Minuit parameter uncertainties:
  1  2.61631
  2  0.921499
  3  0.213021
  4  0.223889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74385': 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) = 6096.1394428
delta logL = 0.048743830419

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.705e+00  2.616e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.575e+00  9.215e-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.041e+00  2.239e-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.176e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.57 +/- 0.92
Photon Flux (Free Index): 3.75e-08 +/- 4.34e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.19e-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/74385/cmap_HighResolution_389404801_389664001_4FGL_J1043.2+2408_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='1.01e-05', photon_flux_error='3.48e-08', dlogl='4.87e-02', energy_flux='1.12e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-02 09:09:27.222347', photon_index_error2='0.92', photon_index2='2.57', ts='1.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.19e-05', EG='1.18', time_epoch_completed='1630598967.22', return_code='0', job_id='74385', GAL2='1.04', EG2='1.18', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.34e-08', ts2='1.15', photon_index='2.32' WHERE bin_id='579' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:09:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 74385: <4FGL_J1043.2+2408_daily_bin579> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin579 160.805 24.146 389404801 389664001 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 :                                   589.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            790 sec.

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

