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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin604
RA = 160.805, Dec = 24.146
tmin = 395884801, tmax = 396144001
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='74426', job_status='RUN', time_executed='2021-09-02 09:00:39.143442', time_epoch_executed='1630598439.14' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74426

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74426/ft1_4FGL_J1043.2+2408_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74426/ft2_4FGL_J1043.2+2408_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74426/ft1_4FGL_J1043.2+2408_daily_bin604.fits outfile=/scratch/kocevski/74426/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin604.fits ra=160.805 dec=24.146 rad=12.0 tmin=395884801.0 tmax=396144001.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 11.60
user 3.11
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74426/ft1_filtered_4FGL_J1043.2+2408_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/74426/ft2_4FGL_J1043.2+2408_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/74426/ltcube_395884801_396144001_4FGL_J1043.2+2408_daily_bin604.fits outfile=/scratch/kocevski/74426/expmap_395884801_396144001_4FGL_J1043.2+2408_daily_bin604.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/74426/ltcube_395884801_396144001_4FGL_J1043.2+2408_daily_bin604.fits
.....................!
real 193.68
user 187.83
sys 4.67

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/74426/ft1_filtered_4FGL_J1043.2+2408_daily_bin604.fits scfile=/scratch/kocevski/74426/ft2_4FGL_J1043.2+2408_daily_bin604.fits outfile=/scratch/kocevski/74426/cmap_395884801_396144001_4FGL_J1043.2+2408_daily_bin604.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74426/ft1_filtered_4FGL_J1043.2+2408_daily_bin604.fits scfile=/scratch/kocevski/74426/ft2_4FGL_J1043.2+2408_daily_bin604.fits outfile=/scratch/kocevski/74426/cmap_HighResolution_395884801_396144001_4FGL_J1043.2+2408_daily_bin604.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19153E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1068       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8005       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.243       1.0000         .10000E-03   10000.    
    16 'norm      '    .30322E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0412       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1156       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98817       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=   5580.748     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1631 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3116        8.8727        .20633E-06   -.85858E-04
   2  Prefactor     .10000E-03    .95581       -.10151E-07** at limit **
   3  norm          .10000E-03    2.6321       -.75351E-07** at limit **
   4  Prefactor     .10001E-03    28.169       -.29906E-05** at limit **
   5  Prefactor     .10000E-03    64.617       -.18223E-05** at limit **
   6  Prefactor     3.1095        5.1305        .30757E-06   -.16585E-03
   7  Prefactor     .10000E-03    .60896       -.64321E-08** at limit **
   8  Prefactor     10.935        7.9518       -.10847E-06   -.26031E-03
   9  Prefactor     .10003E-03    7.3336        .10419E-05** at limit **
  10  Prefactor     .10000E-03    5.1797        .11143E-06** at limit **
  11  Prefactor     5.6461        7.7774        .22457E-06   -.32950E-03
  12  Prefactor     4.8005        5.7466        .29707E-07    .11837E-04
  13  Prefactor     .10001E-03    34.867        .42904E-05** at limit **
  14  Prefactor     2.6637        2.4298        .58245E-07   -.51778E-04
  15  Prefactor     11.246        8.3634       -.61961E-06   -.21686E-03
  16  norm          .10000E-03    6.1403       -.16458E-06** at limit **
  17  Prefactor     7.0362        15.188        .42055E-05   -.14237E-03
  18  Normalizat    1.1155        .18261        .13382E-06   -.15735E-03
  19  Prefactor     .98823        .19132       -.58872E-06   -.85626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31156
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100003
  Prefactor  = 3.10949
  Prefactor  = 0.0001
  Prefactor  = 10.9352
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 5.6461
  Prefactor  = 4.80055
  Prefactor  = 0.000100007
  Prefactor  = 2.66371
  Prefactor  = 11.2458
  norm       = 0.0001
  Prefactor  = 7.03623
  Normalizat = 1.11546
  Prefactor  = 0.988228
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.748     FROM HESSE     STATUS=OK           272 CALLS     1903 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3116        8.8872        .19402E-03   -1.5293    
   2  Prefactor     .10000E-03    .96388        .71279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6394        .11838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    30.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1095        5.0915        .20765E-03   -1.5355    
   7  Prefactor     .10000E-03    .61212        .56893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.935        7.9880        .12117E-03   -1.5046    
   9  Prefactor     .10003E-03    23.584        .35718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1837        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6461        7.5209        .16914E-03   -1.5233    
  12  Prefactor     4.8005        5.7407        .18362E-03   -1.5270    
  13  Prefactor     .10001E-03    37.760        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6637        2.4238        .10618E-03   -1.5382    
  15  Prefactor     11.246        8.3825        .11948E-03   -1.5037    
  16  norm          .10000E-03    15.254        .35811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0362        15.734        .75590E-03   -1.5177    
  18  Normalizat    1.1155        .20582        .22954E-03   -.89257    
  19  Prefactor     .98823        .21819        .26286E-03   -.93123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0427e-09
Minuit parameter uncertainties:
  1  8.88993
  2  4.27196e-07
  3  6.84146e-06
  4  0.000913943
  5  0.000851157
  6  5.09219
  7  1.44048e-06
  8  7.98883
  9  0.00176554
  10  1.3056e-05
  11  7.52214
  12  5.74137
  13  0.000995436
  14  2.42393
  15  8.3834
  16  1.41883e-05
  17  15.7435
  18  0.205971
  19  0.218389
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.440e-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.882e-01  2.184e-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.115e+00  2.060e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74426/likelihoodResults_395884801_396144001_4FGL_J1043.2+2408_daily_bin604.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) = 5580.7486988
delta logL = -0.000333874557327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5580.7483649
delta logL = 2.17460183194e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3084       1.0000          .0000       10.000    
     3 'Normalizat'    1.1153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98835       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5580.748     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      254 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    91.489        .57094E-02** at limit **
   2  Index         1.8955        8.2910        .50000       -.41746E-06
   3  Normalizat    1.1155        .65303E-01    .22954E-03   -.25824E-03
   4  Prefactor     .98823        .70698E-01    .26286E-03    .22139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8955
  Normalizat = 1.11545
  Prefactor  = 0.988234
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.748     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.439        .59294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8955        8.7730        .50000       -.66989    
   3  Normalizat    1.1155        .58423E-01    .45908E-04   -.89257    
   4  Prefactor     .98823        .63541E-01    .52571E-04   -.93123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63949e-08
Minuit parameter uncertainties:
  1  2.46494e-05
  2  1027.41
  3  0.0584262
  4  0.0635456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74426': 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) = 5580.74835889
delta logL = 6.0340798882e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.465e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.896e+00  1.027e+03  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.882e-01  6.355e-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:  1.115e+00  5.843e-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/74426/cmap_HighResolution_395884801_396144001_4FGL_J1043.2+2408_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-02 09:10:03.770438', job_id='74426', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630599003.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='604' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:10:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 74426: <4FGL_J1043.2+2408_daily_bin604> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin604> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:21 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:56:49 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:56:49 2021
Terminated at Thu Sep  2 09:10:04 2021
Results reported at Thu Sep  2 09:10:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin604 160.805 24.146 395884801 396144001 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 :                                   551.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            823 sec.

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

