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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin122
RA = 160.805, Dec = 24.146
tmin = 270950401, tmax = 271209601
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='70721', job_status='RUN', time_executed='2021-09-02 08:45:25.145468', time_epoch_executed='1630597525.15' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70721/ft1_4FGL_J1043.2+2408_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70721/ft2_4FGL_J1043.2+2408_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70721/ft1_4FGL_J1043.2+2408_daily_bin122.fits outfile=/scratch/kocevski/70721/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin122.fits ra=160.805 dec=24.146 rad=12.0 tmin=270950401.0 tmax=271209601.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.64
user 1.45
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70721/ft1_filtered_4FGL_J1043.2+2408_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/70721/ft2_4FGL_J1043.2+2408_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/70721/ltcube_270950401_271209601_4FGL_J1043.2+2408_daily_bin122.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/70721/ft2_4FGL_J1043.2+2408_daily_bin122.fits
.....................!
real 15.95
user 15.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70721/ft1_filtered_4FGL_J1043.2+2408_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/70721/ft2_4FGL_J1043.2+2408_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/70721/ltcube_270950401_271209601_4FGL_J1043.2+2408_daily_bin122.fits outfile=/scratch/kocevski/70721/expmap_270950401_271209601_4FGL_J1043.2+2408_daily_bin122.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/70721/ltcube_270950401_271209601_4FGL_J1043.2+2408_daily_bin122.fits
.....................!
real 190.62
user 185.93
sys 4.23

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/70721/ft1_filtered_4FGL_J1043.2+2408_daily_bin122.fits scfile=/scratch/kocevski/70721/ft2_4FGL_J1043.2+2408_daily_bin122.fits outfile=/scratch/kocevski/70721/cmap_270950401_271209601_4FGL_J1043.2+2408_daily_bin122.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.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.012       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    52.161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11316E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14571E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.782       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .84062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.860       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0651       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3108       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93547       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0361       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90862       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=   7728.447     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1628 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.031        6.5681        .16104E-06   -.39650E-03
   2  Prefactor     .10000E-03    .94805       -.10854E-06** at limit **
   3  norm          52.150        11.435        .56243E-08   -.18941E-03
   4  Prefactor     .10000E-03    15.494       -.55503E-06** at limit **
   5  Prefactor     .10000E-03    27.084        .41371E-06** at limit **
   6  Prefactor     .10000E-03    3.5550        .50110E-07** at limit **
   7  Prefactor     2.5675        1.7327        .11642E-06    .80762E-04
   8  Prefactor     .10000E-03    5.1460        .57722E-07** at limit **
   9  Prefactor     4.0321        9.3754       -.27728E-05    .62481E-03
  10  Prefactor     .10000E-03    8.6825        .53769E-06** at limit **
  11  Prefactor     12.792        8.7795       -.94955E-06    .11483E-02
  12  Prefactor     .83206        10.295       -.12461E-04   -.24192E-03
  13  Prefactor     52.802        20.578       -.84902E-06    .11856E-02
  14  Prefactor     5.0666        2.6020        .45215E-06    .80255E-03
  15  Prefactor     3.3120        5.3150       -.64582E-06    .99482E-04
  16  norm          .10000E-03    2.6645        .14416E-06** at limit **
  17  Prefactor     .93258        8.7566       -.11383E-05   -.48393E-04
  18  Normalizat    1.0361        .16360        .12331E-05    .32598E-03
  19  Prefactor     .90864        .16890        .52375E-06    .31548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0314
  Prefactor  = 0.0001
  norm       = 52.15
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56751
  Prefactor  = 0.0001
  Prefactor  = 4.03209
  Prefactor  = 0.0001
  Prefactor  = 12.792
  Prefactor  = 0.832065
  Prefactor  = 52.8017
  Prefactor  = 5.06658
  Prefactor  = 3.31204
  norm       = 0.0001
  Prefactor  = 0.932576
  Normalizat = 1.03606
  Prefactor  = 0.908639
 **********
 **   18 **HESSE 
 **********

 FCN=   7728.447     FROM HESSE     STATUS=OK           270 CALLS     1898 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.031        6.5537        .12663E-03   -1.5074    
   2  Prefactor     .10000E-03    4.2358        .16524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          52.150        11.433        .27766E-03   -1.4262    
   4  Prefactor     .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5910        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5675        1.7307        .91072E-04   -1.5387    
   8  Prefactor     .10000E-03    5.2565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0321        9.2793        .20118E-03   -1.5306    
  10  Prefactor     .10000E-03    8.6913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.792        8.7045        .11204E-03   -1.4992    
  12  Prefactor     .83206        15.269        .50362E-02   -1.5526    
  13  Prefactor     52.802        20.344        .55165E-04   -1.4253    
  14  Prefactor     5.0666        2.6257        .96138E-04   -1.5258    
  15  Prefactor     3.3120        5.2793        .22249E-03   -1.5344    
  16  norm          .10000E-03    2.6683        .14013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .93258        33.299        .47706E-02   -1.5515    
  18  Normalizat    1.0361        .19016        .24306E-03   -.91832    
  19  Prefactor     .90864        .19645        .27479E-03   -.95840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50375e-07
Minuit parameter uncertainties:
  1  6.55417
  2  7.40949e-05
  3  11.4334
  4  6.47353e-05
  5  0.00011069
  6  5.99466e-06
  7  1.73076
  8  1.65807e-05
  9  9.28257
  10  6.21462e-05
  11  8.7054
  12  7.13046
  13  20.3466
  14  2.62575
  15  5.28003
  16  1.04036e-05
  17  11.1513
  18  0.19029
  19  0.196605
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.568e+00  1.731e+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.086e-01  1.966e-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.036e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.66
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 9.35e-06

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) = 7725.35622493
delta logL = 3.09107830187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7725.05994118
delta logL = 3.38736205884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92966       1.0000         .10000E-03   10000.    
     2 'Index     '    .98316       1.0000          .0000       10.000    
     3 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90097       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=   7725.060     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92809        .76442        .12915E-01   -.48655E-03
   2  Index         .98314        .30654        .17319       -.75952E-04
   3  Normalizat    1.0620        .15692        .39816E-01    .10884E-04
   4  Prefactor     .90085        .16809        .45017E-01    .17471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.92809
  Index      = 0.983143
  Normalizat = 1.06196
  Prefactor  = 0.900847
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.060     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92809        1.2558        .57030E-03   -1.5515    
   2  Index         .98314        .49347        .74136E-02   -.93294    
   3  Normalizat    1.0620        .18138        .24046E-03   -.90983    
   4  Prefactor     .90085        .19426        .27587E-03   -.96112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64841e-09
Minuit parameter uncertainties:
  1  1.25585
  2  0.495755
  3  0.181482
  4  0.194411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70721': 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) = 7725.05993681
delta logL = 3.38736642603

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  9.281e-01  1.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  9.831e-01  4.958e-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:  9.008e-01  1.944e-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.062e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.42
Ra Dec: 160.805 24.146
Photon Index (Free Index): 0.98 +/- 0.50
Photon Flux (Free Index): 6.34e-09 +/- 5.67e-09
Energy Flux (Free Index): 9.56e-05 +/- 9.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/70721/cmap_HighResolution_270950401_271209601_4FGL_J1043.2+2408_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='9.56e-05', photon_flux_error='2.56e-08', dlogl='3.39e+00', energy_flux='1.39e-05', photon_flux2='6.34e-09', job_status='DONE', time_completed='2021-09-02 08:54:50.476635', photon_index_error2='0.50', photon_index2='0.98', ts='10.66', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='9.46e-05', EG='1.04', time_epoch_completed='1630598090.48', return_code='0', job_id='70721', GAL2='0.90', EG2='1.06', return_code2='0', energy_flux_error='9.35e-06', photon_flux_error2='5.67e-09', ts2='17.42', photon_index='2.32' WHERE bin_id='122' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:54:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 70721: <4FGL_J1043.2+2408_daily_bin122> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin122 160.805 24.146 270950401 271209601 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 :                                   562.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            805 sec.

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

