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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin485
RA = 160.805, Dec = 24.146
tmin = 365040001, tmax = 365299201
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='73089', job_status='RUN', time_executed='2021-09-02 08:55:20.579772', time_epoch_executed='1630598120.58' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73089

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73089/ft1_4FGL_J1043.2+2408_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73089/ft2_4FGL_J1043.2+2408_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73089/ft1_4FGL_J1043.2+2408_daily_bin485.fits outfile=/scratch/kocevski/73089/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin485.fits ra=160.805 dec=24.146 rad=12.0 tmin=365040001.0 tmax=365299201.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.63
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73089/ft1_filtered_4FGL_J1043.2+2408_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/73089/ft2_4FGL_J1043.2+2408_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/73089/ltcube_365040001_365299201_4FGL_J1043.2+2408_daily_bin485.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/73089/ft2_4FGL_J1043.2+2408_daily_bin485.fits
.....................!
real 14.80
user 14.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73089/ft1_filtered_4FGL_J1043.2+2408_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/73089/ft2_4FGL_J1043.2+2408_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/73089/ltcube_365040001_365299201_4FGL_J1043.2+2408_daily_bin485.fits outfile=/scratch/kocevski/73089/expmap_365040001_365299201_4FGL_J1043.2+2408_daily_bin485.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/73089/ltcube_365040001_365299201_4FGL_J1043.2+2408_daily_bin485.fits
.....................!
real 190.95
user 186.48
sys 3.97

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

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2236       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19054E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0265       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11266E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56362E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .73908E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6340       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9665       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91080       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1206       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=   5348.695     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1454 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2466        6.6603        .29385E-06   -.86159E-03
   2  Prefactor     .10000E-03    1.1264        .48027E-07** at limit **
   3  norm          .46805E-01    4.7315       -.63145E-06    .29375E-03
   4  Prefactor     .10000E-03    34.329        .22621E-05** at limit **
   5  Prefactor     2.5462        236.09        .31980E-06   -.33582E-05
   6  Prefactor     2.8718        3.8180        .12146E-06   -.11333E-03
   7  Prefactor     .10000E-03    .77622        .64797E-07** at limit **
   8  Prefactor     16.495        7.9891        .75486E-07   -.51557E-04
   9  Prefactor     .10000E-03    3.2977        .44852E-07** at limit **
  10  Prefactor     .10000E-03    24.298       -.73450E-06** at limit **
  11  Prefactor     18.674        11.001       -.14437E-05   -.51626E-03
  12  Prefactor     5.9763        11.305        .62573E-05    .41169E-03
  13  Prefactor     .10000E-03    9.0151        .88886E-06** at limit **
  14  Prefactor     2.0160        2.8970       -.94110E-06   -.49467E-03
  15  Prefactor     5.6307        6.3023       -.10771E-06   -.32326E-03
  16  norm          .10000E-03    3.0782       -.13220E-07** at limit **
  17  Prefactor     2.8944        8.6804        .35812E-05   -.10736E-02
  18  Normalizat    .91121        .17622       -.46797E-06   -.71103E-04
  19  Prefactor     1.1208        .19233       -.37997E-06   -.43816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.24661
  Prefactor  = 0.0001
  norm       = 0.0468046
  Prefactor  = 0.0001
  Prefactor  = 2.54618
  Prefactor  = 2.87177
  Prefactor  = 0.0001
  Prefactor  = 16.4947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6743
  Prefactor  = 5.97631
  Prefactor  = 0.0001
  Prefactor  = 2.01596
  Prefactor  = 5.63067
  norm       = 0.0001
  Prefactor  = 2.89445
  Normalizat = 0.911213
  Prefactor  = 1.12076
 **********
 **   18 **HESSE 
 **********

 FCN=   5348.695     FROM HESSE     STATUS=OK           284 CALLS     1738 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2466        6.8060        .65982E-03   -1.5100    
   2  Prefactor     .10000E-03    2.1098        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .46805E-01    4.6847        .51250E-01   -1.5665    
   4  Prefactor     .10000E-03    34.474        .18236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5462        237.13        .20096E-03   -1.5389    
   6  Prefactor     2.8718        3.8042        .15938E-03   -1.5369    
   7  Prefactor     .10000E-03    1.1478        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.495        7.9945        .98799E-04   -1.4895    
   9  Prefactor     .10000E-03    3.3092        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.527        .21097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.674        10.910        .93055E-04   -1.4843    
  12  Prefactor     5.9763        11.505        .16519E-03   -1.5219    
  13  Prefactor     .10000E-03    63.498        .41284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0160        2.9062        .13449E-03   -1.5424    
  15  Prefactor     5.6307        6.2979        .84621E-03   -1.5233    
  16  norm          .10000E-03    3.0829        .12531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8944        14.914        .11788E-02   -1.5368    
  18  Normalizat    .91121        .20814        .23923E-03   -.96067    
  19  Prefactor     1.1208        .22727        .24662E-03   -.88806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46392e-09
Minuit parameter uncertainties:
  1  6.80656
  2  2.86321e-06
  3  0.935589
  4  0.000200863
  5  49.3459
  6  3.80451
  7  3.06221e-06
  8  7.99498
  9  1.40724e-05
  10  5.93907e-05
  11  10.911
  12  11.5097
  13  0.000190292
  14  2.90638
  15  6.29859
  16  2.1318e-07
  17  13.1456
  18  0.208326
  19  0.227466
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.062e-06  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.121e+00  2.275e-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.112e-01  2.083e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73089/likelihoodResults_365040001_365299201_4FGL_J1043.2+2408_daily_bin485.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) = 5348.69911328
delta logL = -0.00413519940048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5348.69497821
delta logL = -1.24245161714e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3097       1.0000          .0000       10.000    
     3 'Normalizat'    .91127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1208       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5348.695     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    14.420        .15028E-02** at limit **
   2  Index         2.2700        6.0823        .50000        .76181E-04
   3  Normalizat    .91121        .15178E-01    .23923E-03    .12859E-03
   4  Prefactor     1.1208        .17244E-01    .24662E-03    .11691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100584
  Index      = 2.26998
  Normalizat = 0.911213
  Prefactor  = 1.12076
 **********
 **   18 **HESSE 
 **********

 FCN=   5348.695     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10058E-03    62.741        .30055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2700        7.5568        .50000       -.57759    
   3  Normalizat    .91121        .33265E-01    .95693E-05   -.96067    
   4  Prefactor     1.1208        .37788E-01    .49324E-04   -.88806    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.14026e-08
Minuit parameter uncertainties:
  1  0.0121159
  2  285.016
  3  0.0332655
  4  0.0377888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73089': 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) = 5348.69497724
delta logL = 8.40492248244e-07

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.006e-04  1.212e-02  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.270e+00  2.850e+02  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.121e+00  3.779e-02  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.112e-01  3.327e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 160.805 24.146

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/73089/cmap_HighResolution_365040001_365299201_4FGL_J1043.2+2408_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-09-02 09:04:14.743351', job_id='73089', GAL2='1.12', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630598654.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='485' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:04:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 73089: <4FGL_J1043.2+2408_daily_bin485> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin485> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:51:15 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:51:26 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:51:26 2021
Terminated at Thu Sep  2 09:04:15 2021
Results reported at Thu Sep  2 09:04:15 2021

Your job looked like:

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

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

