/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 195 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_bin61
RA = 160.805, Dec = 24.146
tmin = 255139201, tmax = 255398401
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='70644', job_status='RUN', time_executed='2021-09-02 08:46:08.292147', time_epoch_executed='1630597568.29' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70644

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70644/ft1_4FGL_J1043.2+2408_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70644/ft2_4FGL_J1043.2+2408_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70644/ft1_4FGL_J1043.2+2408_daily_bin61.fits outfile=/scratch/kocevski/70644/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin61.fits ra=160.805 dec=24.146 rad=12.0 tmin=255139201.0 tmax=255398401.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 6.17
user 5.86
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70644/ft2_4FGL_J1043.2+2408_daily_bin61.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/70644/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/70644/ft1_filtered_4FGL_J1043.2+2408_daily_bin61.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.45
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70644/ft1_filtered_4FGL_J1043.2+2408_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/70644/ft2_4FGL_J1043.2+2408_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/70644/ltcube_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.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/70644/ft2_4FGL_J1043.2+2408_daily_bin61.fits
.....................!
real 12.19
user 11.69
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70644/ft1_filtered_4FGL_J1043.2+2408_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/70644/ft2_4FGL_J1043.2+2408_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/70644/ltcube_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.fits outfile=/scratch/kocevski/70644/expmap_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.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/70644/ltcube_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.fits
.....................!
real 154.80
user 149.99
sys 4.03

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/70644/ft1_filtered_4FGL_J1043.2+2408_daily_bin61.fits scfile=/scratch/kocevski/70644/ft2_4FGL_J1043.2+2408_daily_bin61.fits outfile=/scratch/kocevski/70644/cmap_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.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.50
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70644/ft1_filtered_4FGL_J1043.2+2408_daily_bin61.fits scfile=/scratch/kocevski/70644/ft2_4FGL_J1043.2+2408_daily_bin61.fits outfile=/scratch/kocevski/70644/cmap_HighResolution_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.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.49
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .62662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14644       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.074       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.175       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8351       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8858       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .60123       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2757       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=   3811.256     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1936 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1911        7.2330       -.68631E-06    .20847E-03
   2  Prefactor     .10000E-03    .92475       -.67454E-07** at limit **
   3  norm          .59669        7.2020       -.33531E-05    .33916E-03
   4  Prefactor     .10000E-03    55.007       -.28530E-04** at limit **
   5  Prefactor     .10000E-03    66.496        .41534E-04** at limit **
   6  Prefactor     .10000E-03    10.158        .40040E-07** at limit **
   7  Prefactor     .13748        1.6414       -.36610E-06    .26796E-03
   8  Prefactor     10.074        8.8421       -.27189E-05    .45119E-06
   9  Prefactor     6.7995        10.507       -.75391E-05    .28314E-06
  10  Prefactor     11.111        35.057       -.65932E-04    .33720E-05
  11  Prefactor     .10000E-03    7.2927       -.29775E-06** at limit **
  12  Prefactor     .10000E-03    4.3303       -.47047E-07** at limit **
  13  Prefactor     .10000E-03    7.7398        .13915E-05** at limit **
  14  Prefactor     2.8343        2.5474       -.82301E-07    .16811E-03
  15  Prefactor     .10000E-03    5.2557       -.46092E-06** at limit **
  16  norm          .10000E-03    5.3194        .16607E-06** at limit **
  17  Prefactor     4.8872        13.962       -.23547E-05   -.64065E-04
  18  Normalizat    .60116        .19716        .11086E-04    .22238E-03
  19  Prefactor     1.2758        .21088        .34730E-06    .57826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.19109
  Prefactor  = 0.0001
  norm       = 0.596689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.137476
  Prefactor  = 10.074
  Prefactor  = 6.7995
  Prefactor  = 11.1108
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83429
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.88715
  Normalizat = 0.601158
  Prefactor  = 1.27583
 **********
 **   18 **HESSE 
 **********

 FCN=   3811.256     FROM HESSE     STATUS=OK           268 CALLS     2204 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1911        7.2204        .14006E-03   -1.5135    
   2  Prefactor     .10000E-03    .93590        .57970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .59669        43.410        .30906E-02   -1.5553    
   4  Prefactor     .10000E-03    55.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13748        10.599        .14637E-02   -1.5634    
   8  Prefactor     10.074        8.8502        .12624E-03   -1.5073    
   9  Prefactor     6.7995        10.493        .15397E-03   -1.5186    
  10  Prefactor     11.111        35.161        .11984E-03   -1.5041    
  11  Prefactor     .10000E-03    7.3164        .16251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3357        .12545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7504        .16765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8343        2.5521        .89933E-04   -1.5371    
  15  Prefactor     .10000E-03    5.2821        .13811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3506        .13905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8872        13.955        .18197E-03   -1.5266    
  18  Normalizat    .60116        .22963        .26647E-03   -1.0793    
  19  Prefactor     1.2758        .25028        .21448E-03   -.84029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05667e-09
Minuit parameter uncertainties:
  1  7.22113
  2  5.74107e-06
  3  10.1857
  4  0.000214246
  5  0.00022009
  6  3.34381e-05
  7  2.41379
  8  8.85135
  9  10.4961
  10  35.2264
  11  0.000133998
  12  1.05662e-05
  13  8.50654e-05
  14  2.55215
  15  2.27867e-05
  16  2.92365e-05
  17  13.9639
  18  0.229993
  19  0.250516
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.375e-01  2.414e+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.276e+00  2.505e-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:  6.012e-01  2.300e-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: 9.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70644/likelihoodResults_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.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): 102
logL (Free Index) = 3810.9723655
delta logL = 0.283598478067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3810.7274484
delta logL = 0.528515578217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25046E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0636       1.0000          .0000       10.000    
     3 'Normalizat'    .53529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3252       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=   3810.727     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      268 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24912E-02    .51357E-01    .10008E-02** at limit **
   2  Index         6.0677        2.8812        .14442        .99272E-04
   3  Normalizat    .53564        .37244E-01    .63587E-01    .38881E-04
   4  Prefactor     1.3247        .42438E-01    .47739E-01    .56836E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00249121
  Index      = 6.06769
  Normalizat = 0.53564
  Prefactor  = 1.32475
 **********
 **   18 **HESSE 
 **********

 FCN=   3810.727     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      303 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24912E-02    .16355        .36508E-04   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0677        7.9570        .50816E-02    .21520    
   3  Normalizat    .53564        .16356        .28138E-03   -1.1079    
   4  Prefactor     1.3247        .18342        .21103E-03   -.82574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43554e-10
Minuit parameter uncertainties:
  1  0.0395519
  2  7.50996
  3  0.163704
  4  0.183514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70644': 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) = 3810.72744089
delta logL = 0.528523083654

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.491e-03  3.955e-02  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  6.068e+00  7.510e+00  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.325e+00  1.835e-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:  5.356e-01  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 160.805 24.146
Photon Index (Free Index): 6.07 +/- 7.51
Photon Flux (Free Index): 4.79e-08 +/- 5.23e-08
Energy Flux (Free Index): 5.94e-06 +/- 7.34e-06

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/70644/cmap_HighResolution_255139201_255398401_4FGL_J1043.2+2408_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', energy_flux2='5.94e-06', dlogl='5.29e-01', photon_flux2='4.79e-08', job_status='DONE', time_completed='2021-09-02 08:53:10.969526', photon_index_error2='7.51', photon_index2='6.07', ts='0.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='9.44e-08', energy_flux_error2='7.34e-06', EG='0.60', time_epoch_completed='1630597990.97', return_code='0', job_id='70644', GAL2='1.32', EG2='0.54', return_code2='102', photon_flux_error2='5.23e-08', ts2='1.14', photon_index='2.32' WHERE bin_id='61' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:53:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 70644: <4FGL_J1043.2+2408_daily_bin61> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin61 160.805 24.146 255139201 255398401 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 :                                   411.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            711 sec.

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

