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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin789
RA = 160.805, Dec = 24.146
tmin = 443836801, tmax = 444096001
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='75610', job_status='RUN', time_executed='2021-09-02 09:04:47.974607', time_epoch_executed='1630598687.97' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75610/ft1_4FGL_J1043.2+2408_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75610/ft1_4FGL_J1043.2+2408_daily_bin789.fits outfile=/scratch/kocevski/75610/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin789.fits ra=160.805 dec=24.146 rad=12.0 tmin=443836801.0 tmax=444096001.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.49
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits" evtable="EVENTS" scfile=/scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits sctable="SC_DATA" outfile=/scratch/kocevski/75610/ltcube_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.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/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits
.....................!
real 16.97
user 16.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/75610/ltcube_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.fits outfile=/scratch/kocevski/75610/expmap_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.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/75610/ltcube_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.fits
.....................!
real 194.18
user 189.29
sys 4.40

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/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits scfile=/scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits outfile=/scratch/kocevski/75610/cmap_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits scfile=/scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits outfile=/scratch/kocevski/75610/cmap_HighResolution_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.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/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75610/Model_4FGL_J1043.2+2408_daily_bin789.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/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits.....................!
real 52.65
user 51.22
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits', '/scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits', expMap='/scratch/kocevski/75610/expmap_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.fits', expCube='/scratch/kocevski/75610/ltcube_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75610/Model_4FGL_J1043.2+2408_daily_bin789.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/75610/ft1_filtered_4FGL_J1043.2+2408_daily_bin789.fits
Spacecraft file(s): /scratch/kocevski/75610/ft2_4FGL_J1043.2+2408_daily_bin789.fits
Exposure map: /scratch/kocevski/75610/expmap_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.fits
Exposure cube: /scratch/kocevski/75610/ltcube_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75610/Model_4FGL_J1043.2+2408_daily_bin789.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5551.29127406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    44.860       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6701       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5555       1.0000         .10000E-03   10000.    
    16 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15778E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92820       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=   5550.207     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1931 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6163       -.10682E-07** at limit **
   2  Prefactor     .10000E-03    .59190        .39176E-07** at limit **
   3  norm          44.857        12.183       -.45547E-06   -.23597E-04
   4  Prefactor     .10000E-03    15.724        .24549E-06** at limit **
   5  Prefactor     .10000E-03    8.7494        .32611E-06** at limit **
   6  Prefactor     .10000E-03    2.1449       -.87644E-07** at limit **
   7  Prefactor     .67824        2.6363        .32993E-06   -.34905E-03
   8  Prefactor     4.6678        7.6434       -.12714E-06   -.57785E-04
   9  Prefactor     1.7783        22.543        .35356E-05    .81576E-04
  10  Prefactor     .10000E-03    7.1510        .46474E-07** at limit **
  11  Prefactor     6.1773        16.297       -.22943E-05    .27142E-04
  12  Prefactor     9.9956        11.032        .12990E-05    .10042E-03
  13  Prefactor     .10011E-03    21.711       -.17913E-05** at limit **
  14  Prefactor     .10000E-03    1.4231       -.11868E-06** at limit **
  15  Prefactor     1.5593        13.025        .69033E-06   -.14517E-03
  16  norm          .10000E-03    8.3487       -.33555E-06** at limit **
  17  Prefactor     .10001E-03    13.758       -.15607E-06** at limit **
  18  Normalizat    1.0419        .18375        .26357E-06    .93194E-04
  19  Prefactor     .92809        .19060       -.11155E-06    .80278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 44.8565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.678237
  Prefactor  = 4.66784
  Prefactor  = 1.7783
  Prefactor  = 0.0001
  Prefactor  = 6.17725
  Prefactor  = 9.99558
  Prefactor  = 0.000100112
  Prefactor  = 0.000100001
  Prefactor  = 1.55934
  norm       = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 1.04194
  Prefactor  = 0.92809
 **********
 **   18 **HESSE 
 **********

 FCN=   5550.207     FROM HESSE     STATUS=OK           278 CALLS     2209 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7058        .15624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .59622        .55957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          44.857        12.175        .59859E-04   -1.4367    
   4  Prefactor     .10000E-03    15.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1526        .10653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .67824        2.6601        .21539E-02   -1.5543    
   8  Prefactor     4.6678        7.6873        .18622E-03   -1.5276    
   9  Prefactor     1.7783        20.128        .31451E-03   -1.5441    
  10  Prefactor     .10000E-03    7.1563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1773        15.167        .16145E-03   -1.5211    
  12  Prefactor     9.9956        10.983        .12677E-03   -1.5076    
  13  Prefactor     .10011E-03    126.74        .54803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9079        .16942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5593        13.105        .34135E-03   -1.5458    
  16  norm          .10000E-03    8.4343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    89.788        .47702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0419        .21359        .22665E-03   -.91638    
  19  Prefactor     .92809        .22301        .26263E-03   -.95166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72457e-08
Minuit parameter uncertainties:
  1  2.41378e-06
  2  6.31413e-09
  3  12.1756
  4  2.5122e-07
  5  9.98359e-07
  6  2.44961e-06
  7  2.66055
  8  7.68897
  9  11.9704
  10  3.01471e-06
  11  15.1761
  12  10.9856
  13  0.00755513
  14  0.000169632
  15  9.04343
  16  8.06609e-06
  17  0.00181661
  18  0.213764
  19  0.223233
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  6.782e-01  2.661e+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:  9.281e-01  2.232e-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.042e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/75610/likelihoodResults_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.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) = 5549.67935682
delta logL = 0.527935961344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5549.57071488
delta logL = 0.636577893424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30586       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7730       1.0000          .0000       10.000    
     3 'Normalizat'    .97865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97034       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=   5549.571     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30569        4.7939        .82557E-02    .15631E-02
   2  Index         3.7733        2.9945        .11327        .14221E-03
   3  Normalizat    .97869        .39402E-01    .45899E-01    .90433E-05
   4  Prefactor     .97030        .43688E-01    .45895E-01    .98630E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.305694
  Index      = 3.77333
  Normalizat = 0.978689
  Prefactor  = 0.970296
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.571     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30569        12.716        .37559E-03   -1.5597    
   2  Index         3.7733        6.8863        .57119E-02   -.24787    
   3  Normalizat    .97869        .15915        .23287E-03   -.93748    
   4  Prefactor     .97030        .17637        .25741E-03   -.93726    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01791e-07
Minuit parameter uncertainties:
  1  3.94342
  2  6.49603
  3  0.159224
  4  0.176474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75610': 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) = 5549.57071484
delta logL = 0.636577935194

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.057e-01  3.943e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.773e+00  6.496e+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:  9.703e-01  1.765e-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.787e-01  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 160.805 24.146
Photon Index (Free Index): 3.77 +/- 6.50
Photon Flux (Free Index): 5.82e-08 +/- 5.90e-08
Energy Flux (Free Index): 9.09e-06 +/- 1.81e-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/75610/cmap_HighResolution_443836801_444096001_4FGL_J1043.2+2408_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', comment='SUCCESS', energy_flux2='9.09e-06', dlogl='6.37e-01', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-02 09:14:32.221329', photon_index_error2='6.50', photon_index2='3.77', ts='0.08', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='1.81e-05', EG='1.04', time_epoch_completed='1630599272.22', return_code='0', job_id='75610', GAL2='0.97', EG2='0.98', return_code2='102', photon_flux_error2='5.90e-08', ts2='1.45', photon_index='2.32' WHERE bin_id='789' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 75610: <4FGL_J1043.2+2408_daily_bin789> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin789 160.805 24.146 443836801 444096001 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 :                                   574.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            799 sec.

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

