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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin950
RA = 160.805, Dec = 24.146
tmin = 485568001, tmax = 485827201
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='75832', job_status='RUN', time_executed='2021-09-02 09:05:54.975170', time_epoch_executed='1630598754.98' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75832/ft1_4FGL_J1043.2+2408_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75832/ft2_4FGL_J1043.2+2408_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75832/ft1_4FGL_J1043.2+2408_daily_bin950.fits outfile=/scratch/kocevski/75832/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin950.fits ra=160.805 dec=24.146 rad=12.0 tmin=485568001.0 tmax=485827201.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.97
user 3.74
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75832/ft2_4FGL_J1043.2+2408_daily_bin950.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/75832/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin950.fits evtable="EVENTS" outfile="/scratch/kocevski/75832/ft1_filtered_4FGL_J1043.2+2408_daily_bin950.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.51
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75832/ft1_filtered_4FGL_J1043.2+2408_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/75832/ft2_4FGL_J1043.2+2408_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/75832/ltcube_485568001_485827201_4FGL_J1043.2+2408_daily_bin950.fits outfile=/scratch/kocevski/75832/expmap_485568001_485827201_4FGL_J1043.2+2408_daily_bin950.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/75832/ltcube_485568001_485827201_4FGL_J1043.2+2408_daily_bin950.fits
.....................!
real 190.30
user 185.96
sys 3.90

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/75832/ft1_filtered_4FGL_J1043.2+2408_daily_bin950.fits scfile=/scratch/kocevski/75832/ft2_4FGL_J1043.2+2408_daily_bin950.fits outfile=/scratch/kocevski/75832/cmap_485568001_485827201_4FGL_J1043.2+2408_daily_bin950.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75832/ft1_filtered_4FGL_J1043.2+2408_daily_bin950.fits scfile=/scratch/kocevski/75832/ft2_4FGL_J1043.2+2408_daily_bin950.fits outfile=/scratch/kocevski/75832/cmap_HighResolution_485568001_485827201_4FGL_J1043.2+2408_daily_bin950.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19492E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3211       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5324       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.416       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.335       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1947       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .71440       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2115       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=   5344.947     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1840 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4319        .90712E-02** at limit **
   2  Prefactor     .10000E-03    .59335        .90712E-02** at limit **
   3  norm          16.220        9.1604        .24863E-02   -.67527E-03
   4  Prefactor     .10001E-03    88.468        .90712E-02** at limit **
   5  Prefactor     27.709        34.260        .19027E-02   -.56111E-03
   6  Prefactor     7.3207        6.5587        .37059E-02   -.17278E-02
   7  Prefactor     2.5326        2.2876        .64166E-02    .29646E-03
   8  Prefactor     18.417        9.0398        .23333E-02    .24408E-03
   9  Prefactor     13.576        10.538        .27173E-02    .14048E-02
  10  Prefactor     .10000E-03    22.645        .90712E-02** at limit **
  11  Prefactor     .10000E-03    11.861        .90712E-02** at limit **
  12  Prefactor     18.338        14.468        .23384E-02    .17569E-02
  13  Prefactor     24.893        16.316        .20072E-02    .85012E-03
  14  Prefactor     .10000E-03    2.2065        .90712E-02** at limit **
  15  Prefactor     11.632        9.3099        .29365E-02   -.24227E-03
  16  norm          .10000E-03    6.0713        .90712E-02** at limit **
  17  Prefactor     6.1973        12.605        .40323E-02    .57562E-03
  18  Normalizat    .71437        .18287        .63326E-01    .93578E-04
  19  Prefactor     1.2115        .19326        .54471E-01    .16933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.2198
  Prefactor  = 0.000100005
  Prefactor  = 27.7088
  Prefactor  = 7.32067
  Prefactor  = 2.53261
  Prefactor  = 18.4167
  Prefactor  = 13.5757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3383
  Prefactor  = 24.8935
  Prefactor  = 0.0001
  Prefactor  = 11.6319
  norm       = 0.0001
  Prefactor  = 6.19727
  Normalizat = 0.714374
  Prefactor  = 1.21149
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.947     FROM HESSE     STATUS=OK           260 CALLS     2100 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5146        .16632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .59813        .54990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.220        9.1619        .99451E-04   -1.4902    
   4  Prefactor     .10001E-03    90.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.709        34.277        .76109E-04   -1.4655    
   6  Prefactor     7.3207        6.5506        .14824E-03   -1.5167    
   7  Prefactor     2.5326        2.2761        .99921E-04   -1.5390    
   8  Prefactor     18.417        9.0454        .93331E-04   -1.4849    
   9  Prefactor     13.576        10.508        .10869E-03   -1.4971    
  10  Prefactor     .10000E-03    22.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.338        14.458        .93536E-04   -1.4851    
  13  Prefactor     24.893        16.307        .80287E-04   -1.4710    
  14  Prefactor     .10000E-03    2.2386        .10561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.632        9.2973        .11746E-03   -1.5026    
  16  norm          .10000E-03    6.0997        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1973        12.583        .16129E-03   -1.5210    
  18  Normalizat    .71437        .21444        .28015E-03   -1.0333    
  19  Prefactor     1.2115        .22727        .24084E-03   -.85978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68047e-09
Minuit parameter uncertainties:
  1  2.49166e-05
  2  5.94887e-06
  3  9.16273
  4  0.00136649
  5  34.3017
  6  6.55127
  7  2.27614
  8  9.04604
  9  10.5098
  10  0.000129038
  11  4.61603e-06
  12  14.461
  13  16.3097
  14  1.04117e-05
  15  9.29848
  16  1.89231e-05
  17  12.5881
  18  0.214689
  19  0.227452
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.533e+00  2.276e+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.211e+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:  7.144e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.23e-05

TS (Fixed Index): 2.22
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75832/likelihoodResults_485568001_485827201_4FGL_J1043.2+2408_daily_bin950.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) = 5344.91852236
delta logL = 0.0287109780993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5344.91088318
delta logL = 0.0363501560978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2424       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4871       1.0000          .0000       10.000    
     3 'Normalizat'    .71021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2136       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=   5344.911     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2391        48.887        .68613E-02    .29295E-03
   2  Index         2.4876        6.2423        .18893        .64956E-04
   3  Normalizat    .70970        .62297E-01    .63511E-01    .52804E-04
   4  Prefactor     1.2142        .64749E-01    .54415E-01    .30620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23914
  Index      = 2.48765
  Normalizat = 0.709704
  Prefactor  = 1.21417
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.911     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2391        2.4241        .91369E-04   -1.5409    
   2  Index         2.4876        .64077        .65782E-02   -.52645    
   3  Normalizat    .70970        .20802        .28098E-03   -1.0351    
   4  Prefactor     1.2142        .22711        .24059E-03   -.85896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48538e-09
Minuit parameter uncertainties:
  1  2.42424
  2  0.643137
  3  0.208248
  4  0.227289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75832': 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): 0
logL (Free Index) = 5344.91087881
delta logL = 0.0363545301097

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.239e+00  2.424e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.488e+00  6.431e-01  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.214e+00  2.273e-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:  7.097e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.49 +/- 0.64
Photon Flux (Free Index): 4.28e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.18e-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/75832/cmap_HighResolution_485568001_485827201_4FGL_J1043.2+2408_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='1.26e-05', photon_flux_error='3.36e-08', dlogl='3.64e-02', energy_flux='1.37e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-02 09:15:11.113140', photon_index_error2='0.64', photon_index2='2.49', ts='2.22', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.18e-05', EG='0.71', time_epoch_completed='1630599311.11', return_code='0', job_id='75832', GAL2='1.21', EG2='0.71', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.05e-08', ts2='2.29', photon_index='2.32' WHERE bin_id='950' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:15:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 75832: <4FGL_J1043.2+2408_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin950 160.805 24.146 485568001 485827201 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 :                                   540.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            815 sec.

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

