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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin1264
RA = 160.805, Dec = 24.146
tmin = 566956801, tmax = 567216001
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='77637', job_status='RUN', time_executed='2021-09-02 09:07:56.335636', time_epoch_executed='1630598876.34' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='1264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77637

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77637/ft1_4FGL_J1043.2+2408_daily_bin1264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77637/ft2_4FGL_J1043.2+2408_daily_bin1264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77637/ft1_4FGL_J1043.2+2408_daily_bin1264.fits outfile=/scratch/kocevski/77637/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin1264.fits ra=160.805 dec=24.146 rad=12.0 tmin=566956801.0 tmax=567216001.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 2.00
user 1.80
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77637/ft2_4FGL_J1043.2+2408_daily_bin1264.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/77637/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin1264.fits evtable="EVENTS" outfile="/scratch/kocevski/77637/ft1_filtered_4FGL_J1043.2+2408_daily_bin1264.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.43
user 0.29
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77637/ft1_filtered_4FGL_J1043.2+2408_daily_bin1264.fits" evtable="EVENTS" scfile=/scratch/kocevski/77637/ft2_4FGL_J1043.2+2408_daily_bin1264.fits sctable="SC_DATA" outfile=/scratch/kocevski/77637/ltcube_566956801_567216001_4FGL_J1043.2+2408_daily_bin1264.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/77637/ft2_4FGL_J1043.2+2408_daily_bin1264.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77637/ft1_filtered_4FGL_J1043.2+2408_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/77637/ft2_4FGL_J1043.2+2408_daily_bin1264.fits sctable="SC_DATA" expcube=/scratch/kocevski/77637/ltcube_566956801_567216001_4FGL_J1043.2+2408_daily_bin1264.fits outfile=/scratch/kocevski/77637/expmap_566956801_567216001_4FGL_J1043.2+2408_daily_bin1264.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/77637/ltcube_566956801_567216001_4FGL_J1043.2+2408_daily_bin1264.fits
.....................!
real 153.16
user 149.30
sys 3.49

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/77637/ft1_filtered_4FGL_J1043.2+2408_daily_bin1264.fits scfile=/scratch/kocevski/77637/ft2_4FGL_J1043.2+2408_daily_bin1264.fits outfile=/scratch/kocevski/77637/cmap_566956801_567216001_4FGL_J1043.2+2408_daily_bin1264.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.47
user 0.32
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82493       1.0000         .10000E-03   10000.    
     3 'norm      '    24.063       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.751       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1350       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12925E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11812E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95705       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91984       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=   6342.947     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1631 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6175       -.63856E-07** at limit **
   2  Prefactor     .82506        2.2734        .89393E-06    .50864E-04
   3  norm          24.063        10.161        .21945E-07   -.37422E-04
   4  Prefactor     .10000E-03    19.617        .75640E-06** at limit **
   5  Prefactor     .10000E-03    17.734        .20303E-06** at limit **
   6  Prefactor     .10000E-03    1.6855        .10034E-07** at limit **
   7  Prefactor     .10000E-03    .81806        .19845E-07** at limit **
   8  Prefactor     9.8711        6.4695        .11732E-06   -.13103E-04
   9  Prefactor     .10000E-03    6.2262       -.12661E-06** at limit **
  10  Prefactor     .10000E-03    30.343       -.52659E-06** at limit **
  11  Prefactor     17.749        9.8405       -.25295E-06   -.42830E-04
  12  Prefactor     1.1363        5.4467        .25475E-05   -.16170E-04
  13  Prefactor     .10000E-03    15.079       -.76878E-06** at limit **
  14  Prefactor     .10002E-03    .92227        .30447E-06** at limit **
  15  Prefactor     .10000E-03    3.0523        .15622E-06** at limit **
  16  norm          .10000E-03    2.9930        .11725E-07** at limit **
  17  Prefactor     .10000E-03    3.7785        .48189E-07** at limit **
  18  Normalizat    .95704        .14794       -.56544E-06   -.18426E-03
  19  Prefactor     .91983        .16175       -.13656E-06   -.15925E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.825059
  norm       = 24.0633
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.8711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7485
  Prefactor  = 1.13632
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.957044
  Prefactor  = 0.919831
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.947     FROM HESSE     STATUS=OK           266 CALLS     1897 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6522        .14790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .82506        2.2619        .19191E-03   -1.5526    
   3  norm          24.063        10.153        .81658E-04   -1.4726    
   4  Prefactor     .10000E-03    19.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6997        .10096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .84293        .14060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8711        6.4708        .12754E-03   -1.5079    
   9  Prefactor     .10000E-03    6.3354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.749        9.8028        .95061E-04   -1.4865    
  12  Prefactor     1.1363        5.4000        .36142E-03   -1.5495    
  13  Prefactor     .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    7.5432        .14211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4434        .27009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0119        .13455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7993        .15119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95704        .17184        .21871E-03   -.94484    
  19  Prefactor     .91983        .18912        .24677E-03   -.95452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00322e-09
Minuit parameter uncertainties:
  1  7.81578e-06
  2  2.26214
  3  10.1538
  4  0.000319676
  5  8.41274e-05
  6  1.34229e-06
  7  1.71212e-06
  8  6.47124
  9  1.36204e-06
  10  0.000234699
  11  9.80364
  12  4.95475
  13  0.000187613
  14  0.000821451
  15  6.8705e-06
  16  8.35347e-07
  17  7.41085e-06
  18  0.171941
  19  0.189259
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.712e-06  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.198e-01  1.893e-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:  9.570e-01  1.719e-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: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77637/likelihoodResults_566956801_567216001_4FGL_J1043.2+2408_daily_bin1264.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6342.95298089
delta logL = -0.00564127215148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6342.94733918
delta logL = 4.38403731096e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3092       1.0000          .0000       10.000    
     3 'Normalizat'    .95705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91983       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=   6342.947     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      212 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9513        .90712E-02** at limit **
   2  Index         2.0589        8.8240        .50000        .19598E-05
   3  Normalizat    .95705        .54487E-02    .45626E-01    .23815E-03
   4  Prefactor     .91983        .60710E-02    .45257E-01    .17853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05889
  Normalizat = 0.957046
  Prefactor  = 0.919831
 **********
 **   18 **HESSE 
 **********

 FCN=   6342.947     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.740        .73492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0589        8.8943        .50000       -.62886    
   3  Normalizat    .95705        .25532E-01    .21871E-03   -.94484    
   4  Prefactor     .91983        .28447E-01    .24677E-03   -.95452    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73834e-08
Minuit parameter uncertainties:
  1  4.10118e-05
  2  294.977
  3  0.0255321
  4  0.0284475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77637': 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) = 6342.94733527
delta logL = 4.34979210695e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  4.101e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.059e+00  2.950e+02  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.198e-01  2.845e-02  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:  9.570e-01  2.553e-02  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/77637/cmap_HighResolution_566956801_567216001_4FGL_J1043.2+2408_daily_bin1264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-02 09:15:44.908832', job_id='77637', GAL2='0.92', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630599344.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1264' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:15:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 77637: <4FGL_J1043.2+2408_daily_bin1264> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin1264> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 09:06:32 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:07:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:07:37 2021
Terminated at Thu Sep  2 09:15:45 2021
Results reported at Thu Sep  2 09:15:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin1264 160.805 24.146 566956801 567216001 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 :                                   464.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   488 sec.
    Turnaround time :                            553 sec.

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

