/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 42 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 = 7396
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin870
RA = 160.805, Dec = 24.146
tmin = 464832001, tmax = 465091201
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='75722', job_status='RUN', time_executed='2021-09-02 09:03:28.734691', time_epoch_executed='1630598608.73' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75722/ft1_4FGL_J1043.2+2408_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75722/ft2_4FGL_J1043.2+2408_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75722/ft1_4FGL_J1043.2+2408_daily_bin870.fits outfile=/scratch/kocevski/75722/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin870.fits ra=160.805 dec=24.146 rad=12.0 tmin=464832001.0 tmax=465091201.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.41
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75722/ft2_4FGL_J1043.2+2408_daily_bin870.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/75722/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin870.fits evtable="EVENTS" outfile="/scratch/kocevski/75722/ft1_filtered_4FGL_J1043.2+2408_daily_bin870.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.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75722/ft1_filtered_4FGL_J1043.2+2408_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/75722/ft2_4FGL_J1043.2+2408_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/75722/ltcube_464832001_465091201_4FGL_J1043.2+2408_daily_bin870.fits outfile=/scratch/kocevski/75722/expmap_464832001_465091201_4FGL_J1043.2+2408_daily_bin870.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/75722/ltcube_464832001_465091201_4FGL_J1043.2+2408_daily_bin870.fits
.....................!
real 190.64
user 185.91
sys 4.26

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75722/ft1_filtered_4FGL_J1043.2+2408_daily_bin870.fits scfile=/scratch/kocevski/75722/ft2_4FGL_J1043.2+2408_daily_bin870.fits outfile=/scratch/kocevski/75722/cmap_HighResolution_464832001_465091201_4FGL_J1043.2+2408_daily_bin870.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7607       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17337E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .78416E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.409       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0554       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.9839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9225       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95083       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0388       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=   5165.820     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1698 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7519        5.5217        .79230E-02    .15380E-02
   2  Prefactor     1.7608        1.6112        .78945E-02    .19635E-04
   3  norm          6.1380        7.8701        .40514E-02    .17050E-03
   4  Prefactor     .10000E-03    46.048        .90712E-02** at limit **
   5  Prefactor     .10000E-03    107.13        .90712E-02** at limit **
   6  Prefactor     .10001E-03    6.6442        .54978E-01** at limit **
   7  Prefactor     .89056E-01    1.3237        .62075E-01    .17933E-03
   8  Prefactor     5.5868        5.1863        .42496E-02    .75516E-03
   9  Prefactor     .10000E-03    4.7996        .90712E-02** at limit **
  10  Prefactor     11.411        14.728        .29651E-02    .22254E-03
  11  Prefactor     .10000E-03    3.8713        .90712E-02** at limit **
  12  Prefactor     .10000E-03    8.3815        .90712E-02** at limit **
  13  Prefactor     .10000E-03    4.1973        .90712E-02** at limit **
  14  Prefactor     1.0552        2.6955        .11985E-01    .97736E-03
  15  Prefactor     .10000E-03    1.6886        .90712E-02** at limit **
  16  norm          7.9865        11.319        .35475E-02    .48453E-03
  17  Prefactor     6.9250        10.982        .38121E-02   -.33036E-03
  18  Normalizat    .95063        .17659        .45548E-01   -.25419E-04
  19  Prefactor     1.0388        .18635        .40614E-01   -.33693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7519
  Prefactor  = 1.76083
  norm       = 6.13804
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.00010001
  Prefactor  = 0.0890559
  Prefactor  = 5.58677
  Prefactor  = 0.0001
  Prefactor  = 11.4107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05517
  Prefactor  = 0.0001
  norm       = 7.98651
  Prefactor  = 6.925
  Normalizat = 0.950625
  Prefactor  = 1.03885
 **********
 **   18 **HESSE 
 **********

 FCN=   5165.820     FROM HESSE     STATUS=OK           278 CALLS     1976 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7519        5.5107        .28614E-03   -1.5443    
   2  Prefactor     1.7608        1.6115        .84625E-04   -1.5443    
   3  norm          6.1380        7.8609        .16206E-03   -1.5212    
   4  Prefactor     .10000E-03    46.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    8.2803        .48833E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .89056E-01    24.801        .14835E-02   -1.5648    
   8  Prefactor     5.5868        5.1912        .15268E-03   -1.5235    
   9  Prefactor     .10000E-03    4.8704        .15365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.411        14.731        .11860E-03   -1.5032    
  11  Prefactor     .10000E-03    3.8774        .13809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2022        .14381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0552        2.6735        .17713E-03   -1.5503    
  15  Prefactor     .10000E-03    1.6893        .91208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.9865        11.326        .14190E-03   -1.5143    
  17  Prefactor     6.9250        10.992        .15248E-03   -1.5182    
  18  Normalizat    .95063        .20670        .22785E-03   -.94703    
  19  Prefactor     1.0388        .21670        .24153E-03   -.91446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01534e-08
Minuit parameter uncertainties:
  1  5.51226
  2  1.61152
  3  7.86217
  4  5.69973e-05
  5  0.00141827
  6  0.000567395
  7  2.9719
  8  5.19166
  9  2.49031e-05
  10  14.7359
  11  1.65036e-05
  12  1.50624e-05
  13  4.80537e-06
  14  2.67379
  15  1.04469e-07
  16  11.3288
  17  10.9957
  18  0.206872
  19  0.216886
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  8.906e-02  2.972e+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.039e+00  2.169e-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:  9.506e-01  2.069e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75722/likelihoodResults_464832001_465091201_4FGL_J1043.2+2408_daily_bin870.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) = 5165.18138451
delta logL = 0.638621036205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5165.16478425
delta logL = 0.655221296935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24157       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9544       1.0000          .0000       10.000    
     3 'Normalizat'    .87033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0882       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=   5165.165     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24138        3.5800        .68693E-02    .30214E-02
   2  Index         3.9564        2.9754        .10735        .19404E-03
   3  Normalizat    .87003        .39944E-01    .44521E-01   -.55937E-04
   4  Prefactor     1.0884        .44298E-01    .38055E-01   -.56807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.241384
  Index      = 3.95644
  Normalizat = 0.870034
  Prefactor  = 1.08843
 **********
 **   18 **HESSE 
 **********

 FCN=   5165.165     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24138        9.3428        .31026E-04   -1.5610    
   2  Index         3.9564        6.9731        .53629E-02   -.21026    
   3  Normalizat    .87003        .18599        .23706E-03   -.97521    
   4  Prefactor     1.0884        .20409        .23659E-03   -.89837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.46402e-10
Minuit parameter uncertainties:
  1  3.00335
  2  6.34036
  3  0.186131
  4  0.204237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75722': 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) = 5165.16477784
delta logL = 0.655227702648

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.414e-01  3.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.956e+00  6.340e+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.088e+00  2.042e-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.700e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 160.805 24.146
Photon Index (Free Index): 3.96 +/- 6.34
Photon Flux (Free Index): 6.54e-08 +/- 6.12e-08
Energy Flux (Free Index): 9.86e-06 +/- 1.53e-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/75722/cmap_HighResolution_464832001_465091201_4FGL_J1043.2+2408_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', comment='SUCCESS', energy_flux2='9.86e-06', dlogl='6.55e-01', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-09-02 09:13:10.342710', photon_index_error2='6.34', photon_index2='3.96', ts='0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='1.53e-05', EG='0.95', time_epoch_completed='1630599190.34', return_code='0', job_id='75722', GAL2='1.09', EG2='0.87', return_code2='102', photon_flux_error2='6.12e-08', ts2='1.43', photon_index='2.32' WHERE bin_id='870' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:13:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 75722: <4FGL_J1043.2+2408_daily_bin870> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin870> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:25 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:02:13 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:02:13 2021
Terminated at Thu Sep  2 09:13:11 2021
Results reported at Thu Sep  2 09:13:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin870 160.805 24.146 464832001 465091201 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 :                                   538.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            706 sec.

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

