/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 199 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin43
RA = 160.805, Dec = 24.146
tmin = 250473601, tmax = 250732801
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='70622', job_status='RUN', time_executed='2021-09-02 08:46:01.220923', time_epoch_executed='1630597561.22' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70622

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70622/ft1_4FGL_J1043.2+2408_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70622/ft2_4FGL_J1043.2+2408_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70622/ft1_4FGL_J1043.2+2408_daily_bin43.fits outfile=/scratch/kocevski/70622/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin43.fits ra=160.805 dec=24.146 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.39
user 1.15
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70622/ft2_4FGL_J1043.2+2408_daily_bin43.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/70622/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/70622/ft1_filtered_4FGL_J1043.2+2408_daily_bin43.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.62
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70622/ft1_filtered_4FGL_J1043.2+2408_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/70622/ft2_4FGL_J1043.2+2408_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/70622/ltcube_250473601_250732801_4FGL_J1043.2+2408_daily_bin43.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/70622/ft2_4FGL_J1043.2+2408_daily_bin43.fits
.....................!
real 13.60
user 13.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70622/ft1_filtered_4FGL_J1043.2+2408_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/70622/ft2_4FGL_J1043.2+2408_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/70622/ltcube_250473601_250732801_4FGL_J1043.2+2408_daily_bin43.fits outfile=/scratch/kocevski/70622/expmap_250473601_250732801_4FGL_J1043.2+2408_daily_bin43.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/70622/ltcube_250473601_250732801_4FGL_J1043.2+2408_daily_bin43.fits
.....................!
real 191.94
user 186.32
sys 4.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/70622/ft1_filtered_4FGL_J1043.2+2408_daily_bin43.fits scfile=/scratch/kocevski/70622/ft2_4FGL_J1043.2+2408_daily_bin43.fits outfile=/scratch/kocevski/70622/cmap_250473601_250732801_4FGL_J1043.2+2408_daily_bin43.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8295       1.0000         .10000E-03   10000.    
     3 'norm      '    11.005       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5630       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26347E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4829       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .44842       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1844       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=   5064.410     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1639 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2189        3.2804        .96212E-07   -.14509E-02
   2  Prefactor     2.8294        2.3287       -.13541E-06   -.48437E-04
   3  norm          11.004        8.2694        .19813E-05    .13647E-04
   4  Prefactor     .10000E-03    32.020        .15001E-05** at limit **
   5  Prefactor     .10000E-03    25.035       -.13583E-05** at limit **
   6  Prefactor     5.6408        6.0967       -.15476E-05   -.55569E-04
   7  Prefactor     3.7173        2.3363        .17854E-06    .69560E-05
   8  Prefactor     .10000E-03    3.8424        .22939E-07** at limit **
   9  Prefactor     3.5632        6.7396        .10606E-06   -.80167E-03
  10  Prefactor     .10000E-03    6.8279        .41568E-07** at limit **
  11  Prefactor     10.048        9.4856       -.51766E-06   -.12791E-04
  12  Prefactor     5.0749        10.489       -.13888E-07   -.30152E-03
  13  Prefactor     .10011E-03    8.0592        .39412E-07** at limit **
  14  Prefactor     1.8581        2.5947       -.11558E-06   -.76049E-04
  15  Prefactor     .10000E-03    8.4078        .38305E-06** at limit **
  16  norm          3.3863        7.2462        .16000E-05   -.14868E-04
  17  Prefactor     7.4835        7.1405       -.46386E-05   -.50121E-04
  18  Normalizat    .44845        .16253        .15736E-05   -.33439E-04
  19  Prefactor     1.1844        .17637       -.60585E-06    .33656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21893
  Prefactor  = 2.82936
  norm       = 11.004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64083
  Prefactor  = 3.71731
  Prefactor  = 0.0001
  Prefactor  = 3.56318
  Prefactor  = 0.0001
  Prefactor  = 10.048
  Prefactor  = 5.07492
  Prefactor  = 0.000100114
  Prefactor  = 1.85812
  Prefactor  = 0.0001
  norm       = 3.38625
  Prefactor  = 7.48353
  Normalizat = 0.448447
  Prefactor  = 1.18438
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.410     FROM HESSE     STATUS=OK           276 CALLS     1915 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2189        5.4315        .12375E-02   -1.5410    
   2  Prefactor     2.8294        2.3214        .94366E-04   -1.5372    
   3  norm          11.004        8.2761        .12077E-03   -1.5044    
   4  Prefactor     .10000E-03    32.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6408        6.0771        .16913E-03   -1.5233    
   7  Prefactor     3.7173        2.3285        .80123E-04   -1.5322    
   8  Prefactor     .10000E-03    3.9173        .13615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5632        7.6970        .10706E-02   -1.5330    
  10  Prefactor     .10000E-03    6.8347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.048        9.5513        .12644E-03   -1.5074    
  12  Prefactor     5.0749        10.657        .89211E-03   -1.5257    
  13  Prefactor     .10011E-03    171.29        .36859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8581        2.5468        .11914E-03   -1.5435    
  15  Prefactor     .10000E-03    8.7956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3863        7.2382        .21987E-03   -1.5340    
  17  Prefactor     7.4835        7.1436        .14661E-03   -1.5161    
  18  Normalizat    .44845        .18176        .27996E-03   -1.1487    
  19  Prefactor     1.1844        .19869        .20275E-03   -.86813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74078e-09
Minuit parameter uncertainties:
  1  5.43269
  2  2.32145
  3  8.27692
  4  1.50021e-05
  5  1.53953e-05
  6  6.0778
  7  2.32856
  8  2.90699e-06
  9  7.6991
  10  1.65171e-06
  11  9.55278
  12  10.6612
  13  0.00885833
  14  2.54693
  15  0.000119151
  16  7.2401
  17  7.14445
  18  0.181999
  19  0.198813
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.717e+00  2.329e+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.184e+00  1.988e-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:  4.484e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.02
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.49e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.26e-05

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) = 5064.39186318
delta logL = 0.018246564362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5064.38536423
delta logL = 0.0247455147864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9951       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2025       1.0000          .0000       10.000    
     3 'Normalizat'    .45533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1795       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=   5064.385     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9953        2.7426        .85494E-04   -.18170E-02
   2  Index         2.2026        .54553        .67983E-02   -.25018E-03
   3  Normalizat    .45531        .17626        .27798E-03    .89891E-04
   4  Prefactor     1.1796        .19895        .20312E-03    .18961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.99534
  Index      = 2.20256
  Normalizat = 0.45531
  Prefactor  = 1.17957
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.385     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9953        2.6903        .34198E-05   -1.5308    
   2  Index         2.2026        .53472        .27193E-03   -.59377    
   3  Normalizat    .45531        .17626        .11119E-04   -1.1453    
   4  Prefactor     1.1796        .19899        .40624E-04   -.86962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20397e-09
Minuit parameter uncertainties:
  1  2.69042
  2  0.536217
  3  0.176477
  4  0.19912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70622': 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) = 5064.38536421
delta logL = 0.0247455402441

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.995e+00  2.690e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.203e+00  5.362e-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.180e+00  1.991e-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:  4.553e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.20 +/- 0.54
Photon Flux (Free Index): 4.94e-08 +/- 4.04e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.72e-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/70622/cmap_HighResolution_250473601_250732801_4FGL_J1043.2+2408_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.49e-08', energy_flux2='2.21e-05', photon_flux_error='3.44e-08', dlogl='2.47e-02', energy_flux='2.01e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-02 08:53:52.211961', photon_index_error2='0.54', photon_index2='2.20', ts='5.02', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.45', time_epoch_completed='1630598032.21', return_code='0', job_id='70622', GAL2='1.18', EG2='0.46', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.04e-08', ts2='5.08', photon_index='2.32' WHERE bin_id='43' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:53:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 70622: <4FGL_J1043.2+2408_daily_bin43> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin43> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:41:18 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:42:33 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:42:33 2021
Terminated at Thu Sep  2 08:53:53 2021
Results reported at Thu Sep  2 08:53:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin43 160.805 24.146 250473601 250732801 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 :                                   470.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             224.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            755 sec.

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

