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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin991
RA = 160.805, Dec = 24.146
tmin = 496195201, tmax = 496454401
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='75886', job_status='RUN', time_executed='2021-09-02 09:06:16.586328', time_epoch_executed='1630598776.59' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='991'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75886/ft1_4FGL_J1043.2+2408_daily_bin991.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75886/ft2_4FGL_J1043.2+2408_daily_bin991.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75886/ft1_4FGL_J1043.2+2408_daily_bin991.fits outfile=/scratch/kocevski/75886/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin991.fits ra=160.805 dec=24.146 rad=12.0 tmin=496195201.0 tmax=496454401.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.44
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75886/ft1_filtered_4FGL_J1043.2+2408_daily_bin991.fits" evtable="EVENTS" scfile=/scratch/kocevski/75886/ft2_4FGL_J1043.2+2408_daily_bin991.fits sctable="SC_DATA" outfile=/scratch/kocevski/75886/ltcube_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.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/75886/ft2_4FGL_J1043.2+2408_daily_bin991.fits
.....................!
real 14.53
user 14.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75886/ft1_filtered_4FGL_J1043.2+2408_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/75886/ft2_4FGL_J1043.2+2408_daily_bin991.fits sctable="SC_DATA" expcube=/scratch/kocevski/75886/ltcube_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.fits outfile=/scratch/kocevski/75886/expmap_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.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/75886/ltcube_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.fits
.....................!
real 190.54
user 185.85
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/75886/ft1_filtered_4FGL_J1043.2+2408_daily_bin991.fits scfile=/scratch/kocevski/75886/ft2_4FGL_J1043.2+2408_daily_bin991.fits outfile=/scratch/kocevski/75886/cmap_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75886/ft1_filtered_4FGL_J1043.2+2408_daily_bin991.fits scfile=/scratch/kocevski/75886/ft2_4FGL_J1043.2+2408_daily_bin991.fits outfile=/scratch/kocevski/75886/cmap_HighResolution_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .52949       1.0000         .10000E-03   10000.    
     3 'norm      '    11.498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0182       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .58656E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.518       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73179       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93130       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0689       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=   5860.655     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1943 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3359        6.7685       -.10546E-06   -.33688E-03
   2  Prefactor     .52883        1.7647       -.16206E-06   -.13999E-03
   3  norm          11.499        7.9805        .16757E-06    .44580E-05
   4  Prefactor     51.052        43.241       -.76268E-05   -.36121E-05
   5  Prefactor     .10000E-03    19.416       -.21140E-05** at limit **
   6  Prefactor     2.9033        2.5691        .15766E-06   -.79281E-03
   7  Prefactor     .10000E-03    .90339       -.29614E-07** at limit **
   8  Prefactor     1.1502        7.2674       -.24721E-06   -.10603E-03
   9  Prefactor     .10001E-03    5.1400        .40961E-06** at limit **
  10  Prefactor     .10000E-03    27.315        .37868E-07** at limit **
  11  Prefactor     4.0189        5.3131       -.32487E-06   -.47221E-04
  12  Prefactor     1.2143        30.835       -.10857E-05   -.37844E-04
  13  Prefactor     .10000E-03    6.1212       -.13350E-06** at limit **
  14  Prefactor     .10000E-03    2.0118        .19054E-07** at limit **
  15  Prefactor     .10001E-03    8.2269        .19429E-06** at limit **
  16  norm          27.518        17.140       -.47323E-06   -.31526E-04
  17  Prefactor     .74516        13.103        .58196E-06   -.20194E-03
  18  Normalizat    .93125        .17797        .60910E-06   -.91436E-04
  19  Prefactor     1.0690        .18107        .35567E-06   -.60269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.33592
  Prefactor  = 0.528828
  norm       = 11.4986
  Prefactor  = 51.0521
  Prefactor  = 0.0001
  Prefactor  = 2.90334
  Prefactor  = 0.0001
  Prefactor  = 1.15018
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 4.01892
  Prefactor  = 1.21426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 27.5183
  Prefactor  = 0.745163
  Normalizat = 0.931249
  Prefactor  = 1.06904
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.655     FROM HESSE     STATUS=OK           280 CALLS     2223 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3359        7.0365        .74048E-03   -1.5166    
   2  Prefactor     .52883        1.7507        .17878E-03   -1.5563    
   3  norm          11.499        7.9735        .11814E-03   -1.5030    
   4  Prefactor     51.052        43.344        .56125E-04   -1.4278    
   5  Prefactor     .10000E-03    19.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9033        7.6121        .11928E-02   -1.5367    
   7  Prefactor     .10000E-03    .91573        .70985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1502        7.6321        .39723E-03   -1.5493    
   9  Prefactor     .10001E-03    19.537        .32979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0189        5.2834        .19647E-03   -1.5307    
  12  Prefactor     1.2143        28.140        .40948E-03   -1.5488    
  13  Prefactor     .10000E-03    6.1338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2272        .19504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    27.314        .38683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.518        17.240        .76370E-04   -1.4658    
  17  Prefactor     .74516        60.920        .48174E-02   -1.5535    
  18  Normalizat    .93125        .20897        .24458E-03   -.95371    
  19  Prefactor     1.0690        .20832        .24556E-03   -.90462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74731e-09
Minuit parameter uncertainties:
  1  7.03726
  2  1.75082
  3  7.97426
  4  43.3711
  5  6.56031e-06
  6  7.61466
  7  1.11285e-06
  8  5.92645
  9  0.000690287
  10  2.1802e-05
  11  5.28401
  12  11.6966
  13  5.45779e-06
  14  4.99324e-06
  15  0.00117142
  16  17.2427
  17  13.4885
  18  0.209154
  19  0.208479
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.113e-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.069e+00  2.085e-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.312e-01  2.092e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75886/likelihoodResults_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.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) = 5860.65974738
delta logL = -0.0051630582002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5860.65458464
delta logL = -3.22997948388e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3152       1.0000          .0000       10.000    
     3 'Normalizat'    .93134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0690       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=   5860.655     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      252 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.075        .71173E-02** at limit **
   2  Index         1.9571        6.6057        .50000        .22819E-06
   3  Normalizat    .93129        .14395E-01    .24458E-03    .13232E-02
   4  Prefactor     1.0690        .15455E-01    .24556E-03   -.17916E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95708
  Normalizat = 0.931287
  Prefactor  = 1.06899
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.655     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.665        .73848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9571        9.0186        .50000       -.65428    
   3  Normalizat    .93129        .46396E-01    .48916E-04   -.95369    
   4  Prefactor     1.0690        .49723E-01    .49112E-04   -.90464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88396e-09
Minuit parameter uncertainties:
  1  3.86581e-06
  2  888.398
  3  0.0463977
  4  0.0497247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75886': 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) = 5860.65458074
delta logL = 3.58205670636e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.866e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.957e+00  8.884e+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.069e+00  4.972e-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.313e-01  4.640e-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/75886/cmap_HighResolution_496195201_496454401_4FGL_J1043.2+2408_daily_bin991.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-09-02 09:16:10.922518', job_id='75886', GAL2='1.07', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630599370.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='991' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:16:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 75886: <4FGL_J1043.2+2408_daily_bin991> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin991> 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) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:03:25 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:25 2021
Terminated at Thu Sep  2 09:16:11 2021
Results reported at Thu Sep  2 09:16:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin991 160.805 24.146 496195201 496454401 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 :                                   568.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            870 sec.

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

