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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin76
RA = 160.805, Dec = 24.146
tmin = 259027201, tmax = 259286401
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='70663', job_status='RUN', time_executed='2021-09-02 08:46:18.083774', time_epoch_executed='1630597578.08' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70663/ft1_4FGL_J1043.2+2408_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70663/ft2_4FGL_J1043.2+2408_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70663/ft1_4FGL_J1043.2+2408_daily_bin76.fits outfile=/scratch/kocevski/70663/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin76.fits ra=160.805 dec=24.146 rad=12.0 tmin=259027201.0 tmax=259286401.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.47
user 1.28
sys 0.17

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70663/ft1_filtered_4FGL_J1043.2+2408_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/70663/ft2_4FGL_J1043.2+2408_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/70663/ltcube_259027201_259286401_4FGL_J1043.2+2408_daily_bin76.fits outfile=/scratch/kocevski/70663/expmap_259027201_259286401_4FGL_J1043.2+2408_daily_bin76.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/70663/ltcube_259027201_259286401_4FGL_J1043.2+2408_daily_bin76.fits
.....................!
real 191.14
user 186.87
sys 3.85

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/70663/ft1_filtered_4FGL_J1043.2+2408_daily_bin76.fits scfile=/scratch/kocevski/70663/ft2_4FGL_J1043.2+2408_daily_bin76.fits outfile=/scratch/kocevski/70663/cmap_259027201_259286401_4FGL_J1043.2+2408_daily_bin76.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.63
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70663/ft1_filtered_4FGL_J1043.2+2408_daily_bin76.fits scfile=/scratch/kocevski/70663/ft2_4FGL_J1043.2+2408_daily_bin76.fits outfile=/scratch/kocevski/70663/cmap_HighResolution_259027201_259286401_4FGL_J1043.2+2408_daily_bin76.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/70663/ft1_filtered_4FGL_J1043.2+2408_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/70663/ft2_4FGL_J1043.2+2408_daily_bin76.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/70663/Model_4FGL_J1043.2+2408_daily_bin76.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/70663/ft1_filtered_4FGL_J1043.2+2408_daily_bin76.fits.....................!
real 46.18
user 44.78
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6775       1.0000         .10000E-03   10000.    
     3 'norm      '    28.162       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9265       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4484       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .55224       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.5095       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=   4893.387     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1619 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3411        7.8343        .84501E-06   -.83548E-03
   2  Prefactor     3.6775        2.8975        .92947E-08   -.82746E-04
   3  norm          28.162        11.851       -.10757E-07    .86278E-05
   4  Prefactor     .10000E-03    26.146        .30850E-05** at limit **
   5  Prefactor     .10001E-03    29.024        .50748E-05** at limit **
   6  Prefactor     .10000E-03    7.3017        .24101E-06** at limit **
   7  Prefactor     2.9650        2.4363        .30711E-06   -.11256E-02
   8  Prefactor     .10000E-03    4.1267        .50400E-07** at limit **
   9  Prefactor     .10000E-03    15.945       -.39101E-05** at limit **
  10  Prefactor     .10001E-03    37.214       -.65624E-05** at limit **
  11  Prefactor     7.9256        11.565        .93787E-06   -.28851E-03
  12  Prefactor     15.126        11.393        .46980E-07    .20656E-04
  13  Prefactor     .10000E-03    9.1708       -.41207E-05** at limit **
  14  Prefactor     2.6731        2.2270        .15628E-07   -.16571E-04
  15  Prefactor     .10000E-03    2.3881        .11690E-06** at limit **
  16  norm          .10000E-03    9.8109        .50303E-05** at limit **
  17  Prefactor     4.4479        7.8222        .28420E-05   -.12454E-02
  18  Normalizat    .55221        .18729       -.58431E-06    .82299E-04
  19  Prefactor     1.5095        .21245       -.27609E-06    .87336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.34112
  Prefactor  = 3.6775
  norm       = 28.1624
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 2.96499
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100008
  Prefactor  = 7.92556
  Prefactor  = 15.126
  Prefactor  = 0.000100003
  Prefactor  = 2.67308
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 4.44787
  Normalizat = 0.552212
  Prefactor  = 1.50952
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.387     FROM HESSE     STATUS=OK           266 CALLS     1885 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3411        8.0674        .69403E-03   -1.5130    
   2  Prefactor     3.6775        2.8923        .10173E-03   -1.5324    
   3  norm          28.162        11.847        .75493E-04   -1.4646    
   4  Prefactor     .10000E-03    26.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    29.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9650        2.4640        .47570E-03   -1.5364    
   8  Prefactor     .10000E-03    4.1729        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    38.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9256        11.724        .71209E-03   -1.5145    
  12  Prefactor     15.126        11.388        .10298E-03   -1.4930    
  13  Prefactor     .10000E-03    9.4855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6731        2.2230        .91484E-04   -1.5381    
  15  Prefactor     .10000E-03    2.4023        .10558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4479        9.2081        .95461E-03   -1.5286    
  18  Normalizat    .55221        .21728        .30411E-03   -1.1005    
  19  Prefactor     1.5095        .24717        .22402E-03   -.77274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44459e-09
Minuit parameter uncertainties:
  1  8.06846
  2  2.89243
  3  11.8478
  4  0.000440765
  5  0.00077273
  6  2.02393e-05
  7  2.4641
  8  2.31653e-06
  9  0.000383321
  10  0.00110653
  11  11.7271
  12  11.3894
  13  0.000344172
  14  2.22307
  15  5.07678e-06
  16  0.000414664
  17  9.21101
  18  0.217616
  19  0.247369
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.965e+00  2.464e+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.510e+00  2.474e-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:  5.522e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/70663/likelihoodResults_259027201_259286401_4FGL_J1043.2+2408_daily_bin76.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) = 4893.27703742
delta logL = 0.110374339038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4893.27254952
delta logL = 0.114862243053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1657       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7221       1.0000          .0000       10.000    
     3 'Normalizat'    .52748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5277       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=   4893.273     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1657        36.478        .69966E-02    .17875E-02
   2  Index         2.7221        6.3602        .12637        .93517E-04
   3  Normalizat    .52744        .79674E-01    .70207E-01    .28438E-04
   4  Prefactor     1.5277        .73142E-01    .50426E-01   -.23440E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16568
  Index      = 2.72215
  Normalizat = 0.527444
  Prefactor  = 1.52771
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.273     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1657        3.0188        .73984E-04   -1.5414    
   2  Index         2.7221        .99803        .65247E-02   -.47301    
   3  Normalizat    .52744        .22246        .31078E-03   -1.1116    
   4  Prefactor     1.5277        .25208        .22291E-03   -.76767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01609e-09
Minuit parameter uncertainties:
  1  3.01903
  2  1.00658
  3  0.222838
  4  0.252285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70663': 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) = 4893.27254942
delta logL = 0.114862339776

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.166e+00  3.019e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.722e+00  1.007e+00  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.528e+00  2.523e-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:  5.274e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.72 +/- 1.01
Photon Flux (Free Index): 6.09e-08 +/- 5.65e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.14e-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/70663/cmap_HighResolution_259027201_259286401_4FGL_J1043.2+2408_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='1.44e-05', photon_flux_error='3.64e-08', dlogl='1.15e-01', energy_flux='1.60e-05', photon_flux2='6.09e-08', job_status='DONE', time_completed='2021-09-02 08:54:54.787368', photon_index_error2='1.01', photon_index2='2.72', ts='2.96', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.14e-05', EG='0.55', time_epoch_completed='1630598094.79', return_code='0', job_id='70663', GAL2='1.53', EG2='0.53', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.65e-08', ts2='3.22', photon_index='2.32' WHERE bin_id='76' 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@bullet0273>
Subject: Job 70663: <4FGL_J1043.2+2408_daily_bin76> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin76> 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) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:42:52 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:52 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_bin76 160.805 24.146 259027201 259286401 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 :                                   509.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            813 sec.

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

