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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin986
RA = 160.805, Dec = 24.146
tmin = 494899201, tmax = 495158401
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='75879', job_status='RUN', time_executed='2021-09-02 09:07:02.830836', time_epoch_executed='1630598822.83' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='986'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75879/ft1_4FGL_J1043.2+2408_daily_bin986.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75879/ft2_4FGL_J1043.2+2408_daily_bin986.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75879/ft1_4FGL_J1043.2+2408_daily_bin986.fits outfile=/scratch/kocevski/75879/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin986.fits ra=160.805 dec=24.146 rad=12.0 tmin=494899201.0 tmax=495158401.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.68
user 3.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75879/ft2_4FGL_J1043.2+2408_daily_bin986.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/75879/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin986.fits evtable="EVENTS" outfile="/scratch/kocevski/75879/ft1_filtered_4FGL_J1043.2+2408_daily_bin986.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75879/ft1_filtered_4FGL_J1043.2+2408_daily_bin986.fits" evtable="EVENTS" scfile=/scratch/kocevski/75879/ft2_4FGL_J1043.2+2408_daily_bin986.fits sctable="SC_DATA" outfile=/scratch/kocevski/75879/ltcube_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.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/75879/ft2_4FGL_J1043.2+2408_daily_bin986.fits
.....................!
real 12.64
user 12.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75879/ft1_filtered_4FGL_J1043.2+2408_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/75879/ft2_4FGL_J1043.2+2408_daily_bin986.fits sctable="SC_DATA" expcube=/scratch/kocevski/75879/ltcube_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.fits outfile=/scratch/kocevski/75879/expmap_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.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/75879/ltcube_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.fits
.....................!
real 192.64
user 186.44
sys 5.44

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/75879/ft1_filtered_4FGL_J1043.2+2408_daily_bin986.fits scfile=/scratch/kocevski/75879/ft2_4FGL_J1043.2+2408_daily_bin986.fits outfile=/scratch/kocevski/75879/cmap_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=160.805 yref=24.146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75879/ft1_filtered_4FGL_J1043.2+2408_daily_bin986.fits scfile=/scratch/kocevski/75879/ft2_4FGL_J1043.2+2408_daily_bin986.fits outfile=/scratch/kocevski/75879/cmap_HighResolution_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=160.805 yref=24.146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10513E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.507       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16309E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15856E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .90511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20452E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.126       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17118E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22307E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16787       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1973       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1450       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=   5978.361     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1922 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.093        9.6781        .24310E-05   -.22986E-03
   2  Prefactor     .10000E-03    1.2772        .30059E-06** at limit **
   3  norm          .10000E-03    2.9339       -.43775E-06** at limit **
   4  Prefactor     27.543        40.380        .58530E-04   -.59541E-04
   5  Prefactor     .10000E-03    39.737       -.29678E-04** at limit **
   6  Prefactor     .10009E-03    6.8551        .28661E-05** at limit **
   7  Prefactor     .10000E-03    1.8457        .16946E-06** at limit **
   8  Prefactor     .90468        5.2702        .76202E-06   -.52018E-03
   9  Prefactor     .10000E-03    9.5131       -.14456E-05** at limit **
  10  Prefactor     .10000E-03    23.438        .11962E-04** at limit **
  11  Prefactor     11.134        9.3540       -.15027E-06   -.23560E-03
  12  Prefactor     .10000E-03    4.6128       -.67194E-06** at limit **
  13  Prefactor     .10000E-03    6.0150        .17091E-05** at limit **
  14  Prefactor     .10000E-03    2.9508        .85476E-06** at limit **
  15  Prefactor     .16453        4.0226       -.16134E-06   -.33717E-03
  16  norm          5.4348        14.305        .23906E-04   -.97407E-04
  17  Prefactor     .10000E-03    9.6092       -.12991E-05** at limit **
  18  Normalizat    1.1972        .18697       -.53719E-05   -.59150E-03
  19  Prefactor     1.1451        .19274       -.37231E-05   -.57590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0933
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.5428
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 0.000100001
  Prefactor  = 0.904684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.164532
  norm       = 5.43481
  Prefactor  = 0.0001
  Normalizat = 1.19715
  Prefactor  = 1.14508
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.361     FROM HESSE     STATUS=OK           266 CALLS     2188 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.093        9.6443        .12602E-03   -1.5072    
   2  Prefactor     .10000E-03    2.2871        .16943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.9398        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.543        40.363        .76385E-04   -1.4658    
   5  Prefactor     .10000E-03    39.736        .21274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10009E-03    24.139        .37396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1064        .19647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .90468        10.512        .33597E-02   -1.5518    
   9  Prefactor     .10000E-03    9.6487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.622        .20209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.134        9.3242        .12011E-03   -1.5040    
  12  Prefactor     .10000E-03    4.6195        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0689        .25898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16453        21.267        .30099E-02   -1.5627    
  16  norm          5.4348        14.275        .17277E-03   -1.5242    
  17  Prefactor     .10000E-03    9.6702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1972        .21817        .24501E-03   -.86691    
  19  Prefactor     1.1451        .23083        .26651E-03   -.88039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6464e-09
Minuit parameter uncertainties:
  1  9.64577
  2  5.26484e-05
  3  2.88244e-06
  4  40.4028
  5  0.000212839
  6  0.00299448
  7  0.000119483
  8  6.16866
  9  7.70421e-05
  10  0.000123571
  11  9.32544
  12  1.22699e-05
  13  2.2163e-05
  14  6.11193e-06
  15  3.7414
  16  14.2841
  17  4.13881e-05
  18  0.218338
  19  0.231032
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.195e-04  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.145e+00  2.310e-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.197e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75879/likelihoodResults_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.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): 102
logL (Free Index) = 5978.36276004
delta logL = -0.00153532398417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5978.36122051
delta logL = 4.20853211835e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4121       1.0000          .0000       10.000    
     3 'Normalizat'    1.1973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1450       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=   5977.458     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      278 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11078        3.0863        .43205E-02   -.25527E-03
   2  Index         4.5739        3.6846        .12893        .32020E-04
   3  Normalizat    1.0784        .19909        .57940E-01   -.53283E-03
   4  Prefactor     1.2215        .13167        .58604E-01   -.33327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.110779
  Index      = 4.57394
  Normalizat = 1.07843
  Prefactor  = 1.22155
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.458     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11078        3.1988        .19498E-04   -1.5775    
   2  Index         4.5739        7.0819        .45057E-02   -.85316E-01
   3  Normalizat    1.0784        .21164        .25625E-03   -.90447    
   4  Prefactor     1.2215        .21979        .25915E-03   -.85671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.13576e-10
Minuit parameter uncertainties:
  1  1.19009
  2  5.36832
  3  0.211809
  4  0.219953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75879': 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): 102
logL (Free Index) = 5977.45780385
delta logL = 0.903420865352

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.108e-01  1.190e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.574e+00  5.368e+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.222e+00  2.200e-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.078e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 160.805 24.146
Photon Index (Free Index): 4.57 +/- 5.37
Photon Flux (Free Index): 1.01e-07 +/- 2.15e-06
Energy Flux (Free Index): 1.40e-05 +/- 2.91e-04

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/75879/cmap_HighResolution_494899201_495158401_4FGL_J1043.2+2408_daily_bin986.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='9.03e-01', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-02 09:16:46.602315', photon_index_error2='5.37', photon_index2='4.57', ts='-0.00', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='9.05e-08', energy_flux_error2='2.91e-04', EG='1.20', time_epoch_completed='1630599406.6', return_code='0', job_id='75879', GAL2='1.22', EG2='1.08', return_code2='102', photon_flux_error2='2.15e-06', ts2='2.02', photon_index='2.32' WHERE bin_id='986' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:16:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 75879: <4FGL_J1043.2+2408_daily_bin986> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin986> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:41 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:03:23 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:03:23 2021
Terminated at Thu Sep  2 09:16:47 2021
Results reported at Thu Sep  2 09:16:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin986 160.805 24.146 494899201 495158401 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 :                                   577.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            906 sec.

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

