/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 9 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin243
RA = 160.805, Dec = 24.146
tmin = 302313601, tmax = 302572801
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='71961', job_status='RUN', time_executed='2021-09-02 08:47:22.464731', time_epoch_executed='1630597642.46' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71961/ft1_4FGL_J1043.2+2408_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71961/ft2_4FGL_J1043.2+2408_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71961/ft1_4FGL_J1043.2+2408_daily_bin243.fits outfile=/scratch/kocevski/71961/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin243.fits ra=160.805 dec=24.146 rad=12.0 tmin=302313601.0 tmax=302572801.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.54
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71961/ft2_4FGL_J1043.2+2408_daily_bin243.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/71961/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin243.fits evtable="EVENTS" outfile="/scratch/kocevski/71961/ft1_filtered_4FGL_J1043.2+2408_daily_bin243.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71961/ft1_filtered_4FGL_J1043.2+2408_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/71961/ft2_4FGL_J1043.2+2408_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/71961/ltcube_302313601_302572801_4FGL_J1043.2+2408_daily_bin243.fits outfile=/scratch/kocevski/71961/expmap_302313601_302572801_4FGL_J1043.2+2408_daily_bin243.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/71961/ltcube_302313601_302572801_4FGL_J1043.2+2408_daily_bin243.fits
.....................!
real 191.71
user 186.93
sys 4.04

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/71961/ft1_filtered_4FGL_J1043.2+2408_daily_bin243.fits scfile=/scratch/kocevski/71961/ft2_4FGL_J1043.2+2408_daily_bin243.fits outfile=/scratch/kocevski/71961/cmap_302313601_302572801_4FGL_J1043.2+2408_daily_bin243.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=160.805 yref=24.146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71961/ft1_filtered_4FGL_J1043.2+2408_daily_bin243.fits scfile=/scratch/kocevski/71961/ft2_4FGL_J1043.2+2408_daily_bin243.fits outfile=/scratch/kocevski/71961/cmap_HighResolution_302313601_302572801_4FGL_J1043.2+2408_daily_bin243.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.59
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7305       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3982       1.0000         .10000E-03   10000.    
     3 'norm      '    51.051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69133E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8346       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.195       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11656E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7842       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26108E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85898       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=   6044.124     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1908 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7296        3.2819        .99286E-06   -.20791E-02
   2  Prefactor     1.3981        2.2718       -.85962E-07   -.14416E-03
   3  norm          51.051        13.295        .42242E-07    .60717E-05
   4  Prefactor     36.918        40.087       -.11968E-04   -.12961E-03
   5  Prefactor     .10000E-03    39.398       -.16807E-05** at limit **
   6  Prefactor     6.8419        8.5083       -.92974E-07   -.73910E-04
   7  Prefactor     .10004E-03    1.1539        .23850E-06** at limit **
   8  Prefactor     17.934        10.655       -.31297E-07   -.21921E-03
   9  Prefactor     3.8374        11.132       -.32711E-06    .22059E-05
  10  Prefactor     .10000E-03    25.019        .71704E-05** at limit **
  11  Prefactor     21.743        12.605       -.10662E-06    .60676E-04
  12  Prefactor     10.194        14.211       -.31373E-06   -.53937E-05
  13  Prefactor     .10000E-03    22.149       -.63231E-05** at limit **
  14  Prefactor     .10000E-03    1.7714       -.42623E-07** at limit **
  15  Prefactor     3.7859        4.4865       -.23361E-09    .42278E-04
  16  norm          .10000E-03    4.1703       -.75507E-07** at limit **
  17  Prefactor     .10000E-03    6.0423       -.15328E-06** at limit **
  18  Normalizat    1.1795        .19106        .41621E-06   -.17968E-04
  19  Prefactor     .85917        .18887        .59949E-06   -.75943E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72962
  Prefactor  = 1.39809
  norm       = 51.051
  Prefactor  = 36.9181
  Prefactor  = 0.0001
  Prefactor  = 6.84188
  Prefactor  = 0.000100045
  Prefactor  = 17.9342
  Prefactor  = 3.83735
  Prefactor  = 0.0001
  Prefactor  = 21.7427
  Prefactor  = 10.1945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78595
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17951
  Prefactor  = 0.859166
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.124     FROM HESSE     STATUS=OK           272 CALLS     2180 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7296        7.5039        .12321E-02   -1.5378    
   2  Prefactor     1.3981        2.2416        .14322E-03   -1.5471    
   3  norm          51.051        13.369        .56130E-04   -1.4278    
   4  Prefactor     36.918        40.354        .65949E-04   -1.4492    
   5  Prefactor     .10000E-03    39.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8419        8.4074        .15339E-03   -1.5185    
   7  Prefactor     .10004E-03    21.824        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.934        10.740        .47289E-03   -1.4861    
   9  Prefactor     3.8374        10.989        .20610E-03   -1.5316    
  10  Prefactor     .10000E-03    25.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.743        12.517        .85903E-04   -1.4775    
  12  Prefactor     10.194        13.608        .12549E-03   -1.5069    
  13  Prefactor     .10000E-03    22.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8046        .18857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7859        4.4610        .17343E-03   -1.5319    
  16  norm          .10000E-03    4.1800        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.424        .36713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1795        .22760        .24373E-03   -.87238    
  19  Prefactor     .85917        .22482        .29140E-03   -.97583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09599e-08
Minuit parameter uncertainties:
  1  7.50651
  2  2.24175
  3  13.3702
  4  40.3835
  5  7.05306e-05
  6  8.40889
  7  0.00197263
  8  10.7411
  9  10.9943
  10  0.000130186
  11  12.5188
  12  13.6119
  13  9.4081e-05
  14  2.41451e-05
  15  4.46136
  16  3.18634e-06
  17  6.26463e-05
  18  0.227789
  19  0.225063
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.973e-03  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:  8.592e-01  2.251e-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.180e+00  2.278e-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: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71961/likelihoodResults_302313601_302572801_4FGL_J1043.2+2408_daily_bin243.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) = 6044.12427947
delta logL = -0.000221369484279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6044.06689929
delta logL = 0.0571588157518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27784       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2484       1.0000          .0000       10.000    
     3 'Normalizat'    1.1613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86742       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=   6044.067     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      281 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27775        6.2571        .25162E-01    .14410E-02
   2  Index         3.2482        3.0793        .21593        .63048E-04
   3  Normalizat    1.1613        .19214E-01    .55478E-01    .72591E-05
   4  Prefactor     .86737        .20058E-01    .65582E-01    .15947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.277749
  Index      = 3.24821
  Normalizat = 1.16129
  Prefactor  = 0.867371
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.067     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      316 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27775        116.32        .92704E-03   -1.5603    
   2  Index         3.2482        8.3565        .13295E-01   -.35795    
   3  Normalizat    1.1613        .16181        .24532E-03   -.87808    
   4  Prefactor     .86737        .18305        .29009E-03   -.97291    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53943e-06
Minuit parameter uncertainties:
  1  11.388
  2  20.9762
  3  0.16188
  4  0.183184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71961': 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) = 6044.06689924
delta logL = 0.0571588658322

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.777e-01  1.139e+01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.248e+00  2.098e+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:  8.674e-01  1.832e-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.161e+00  1.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 160.805 24.146

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/71961/cmap_HighResolution_302313601_302572801_4FGL_J1043.2+2408_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-02 08:57:07.383939', job_id='71961', GAL2='0.87', fit_tolerance='1e-08', EG2='1.16', EG='1.18', time_epoch_completed='1630598227.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.72e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='243' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 71961: <4FGL_J1043.2+2408_daily_bin243> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin243> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:30 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:47:05 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:47:05 2021
Terminated at Thu Sep  2 08:57:08 2021
Results reported at Thu Sep  2 08:57:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin243 160.805 24.146 302313601 302572801 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 :                                   579.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            638 sec.

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

