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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin206
RA = 160.805, Dec = 24.146
tmin = 292723201, tmax = 292982401
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='71908', job_status='RUN', time_executed='2021-09-02 08:49:27.283187', time_epoch_executed='1630597767.28' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71908

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71908/ft1_4FGL_J1043.2+2408_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71908/ft2_4FGL_J1043.2+2408_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71908/ft1_4FGL_J1043.2+2408_daily_bin206.fits outfile=/scratch/kocevski/71908/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin206.fits ra=160.805 dec=24.146 rad=12.0 tmin=292723201.0 tmax=292982401.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 4.46
user 4.17
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71908/ft1_filtered_4FGL_J1043.2+2408_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/71908/ft2_4FGL_J1043.2+2408_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/71908/ltcube_292723201_292982401_4FGL_J1043.2+2408_daily_bin206.fits outfile=/scratch/kocevski/71908/expmap_292723201_292982401_4FGL_J1043.2+2408_daily_bin206.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/71908/ltcube_292723201_292982401_4FGL_J1043.2+2408_daily_bin206.fits
.....................!
real 193.17
user 188.84
sys 3.94

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71908/ft1_filtered_4FGL_J1043.2+2408_daily_bin206.fits scfile=/scratch/kocevski/71908/ft2_4FGL_J1043.2+2408_daily_bin206.fits outfile=/scratch/kocevski/71908/cmap_HighResolution_292723201_292982401_4FGL_J1043.2+2408_daily_bin206.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.60
user 0.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.605       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0082       1.0000         .10000E-03   10000.    
     3 'norm      '    33.270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.320       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0512       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6917       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .63948       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.4567       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=   6850.608     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1936 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.605        8.2011       -.51211E-07   -.46759E-04
   2  Prefactor     3.0082        2.3176        .92298E-06    .55866E-04
   3  norm          33.269        11.458        .46698E-08   -.10956E-03
   4  Prefactor     .10000E-03    38.755        .11429E-06** at limit **
   5  Prefactor     16.388        35.358       -.90180E-06   -.14535E-03
   6  Prefactor     .10033E-03    5.4663        .85548E-06** at limit **
   7  Prefactor     .10000E-03    .56380        .72160E-08** at limit **
   8  Prefactor     12.319        7.2418        .12129E-06   -.46908E-04
   9  Prefactor     13.286        8.1871       -.64591E-07   -.22327E-03
  10  Prefactor     .10000E-03    19.415        .28796E-07** at limit **
  11  Prefactor     .10000E-03    2.8333        .25936E-08** at limit **
  12  Prefactor     20.456        12.557       -.33195E-06   -.18386E-03
  13  Prefactor     2.0552        14.458        .16272E-05    .11104E-05
  14  Prefactor     .41786        2.1386        .78771E-06   -.35030E-03
  15  Prefactor     .10000E-03    2.1268        .32655E-07** at limit **
  16  norm          4.6920        7.2206        .15871E-06   -.14947E-04
  17  Prefactor     .10000E-03    6.2486        .93968E-07** at limit **
  18  Normalizat    .63938        .17274       -.10228E-05   -.25154E-03
  19  Prefactor     1.4568        .18331       -.61187E-07   -.27582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6047
  Prefactor  = 3.00818
  norm       = 33.2688
  Prefactor  = 0.0001
  Prefactor  = 16.388
  Prefactor  = 0.000100327
  Prefactor  = 0.0001
  Prefactor  = 12.3195
  Prefactor  = 13.2861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4562
  Prefactor  = 2.05519
  Prefactor  = 0.417859
  Prefactor  = 0.0001
  norm       = 4.69198
  Prefactor  = 0.0001
  Normalizat = 0.639379
  Prefactor  = 1.45676
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.608     FROM HESSE     STATUS=OK           280 CALLS     2216 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.605        8.1950        .11283E-03   -1.4998    
   2  Prefactor     3.0082        2.3229        .53341E-03   -1.5361    
   3  norm          33.269        11.453        .69471E-04   -1.4554    
   4  Prefactor     .10000E-03    38.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.388        35.375        .98826E-04   -1.4898    
   6  Prefactor     .10033E-03    6.4708        .52403E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .56655        .60652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.319        7.2433        .11413E-03   -1.5006    
   9  Prefactor     13.286        8.1471        .10988E-03   -1.4979    
  10  Prefactor     .10000E-03    19.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8351        .13601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.456        12.378        .88564E-04   -1.4803    
  13  Prefactor     2.0552        14.341        .28863E-03   -1.5421    
  14  Prefactor     .41786        3.4043        .21088E-02   -1.5579    
  15  Prefactor     .10000E-03    2.1323        .11788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6920        7.2091        .18578E-03   -1.5275    
  17  Prefactor     .10000E-03    6.3037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .63938        .20001        .30616E-03   -1.0634    
  19  Prefactor     1.4568        .21459        .23626E-03   -.78758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84958e-08
Minuit parameter uncertainties:
  1  8.19571
  2  2.32294
  3  11.4535
  4  2.47554e-06
  5  35.4201
  6  0.00290738
  7  1.11626e-07
  8  7.24378
  9  8.14781
  10  1.00933e-05
  11  4.54072e-07
  12  12.3796
  13  10.8613
  14  2.38528
  15  6.59663e-07
  16  7.21039
  17  6.20198e-06
  18  0.200241
  19  0.21472
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.116e-07  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.457e+00  2.147e-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.394e-01  2.002e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71908/likelihoodResults_292723201_292982401_4FGL_J1043.2+2408_daily_bin206.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) = 6850.60808806
delta logL = -8.09260791357e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6850.60800815
delta logL = -1.01698697108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3016       1.0000          .0000       10.000    
     3 'Normalizat'    .63966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4566       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=   6850.608     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      256 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8646        .61080E-02** at limit **
   2  Index         1.9531        5.1811        .50000       -.13324E-06
   3  Normalizat    .63938        .12753E-01    .30616E-03   -.12076E-03
   4  Prefactor     1.4568        .14328E-01    .23626E-03   -.21938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9531
  Normalizat = 0.639381
  Prefactor  = 1.45675
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.608     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.572        .63541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9531        8.9044        .50000       -.65528    
   3  Normalizat    .63938        .56170E-01    .12246E-04   -1.0634    
   4  Prefactor     1.4568        .63060E-01    .47252E-04   -.78758    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05077e-09
Minuit parameter uncertainties:
  1  1.33789e-05
  2  640.037
  3  0.0561746
  4  0.0630635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71908': 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) = 6850.60799972
delta logL = 7.42178872315e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.338e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.953e+00  6.400e+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:  1.457e+00  6.306e-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:  6.394e-01  5.617e-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/71908/cmap_HighResolution_292723201_292982401_4FGL_J1043.2+2408_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-02 08:59:58.523691', job_id='71908', GAL2='1.46', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630598398.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='7.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='206' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 71908: <4FGL_J1043.2+2408_daily_bin206> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin206> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:25 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:46:46 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:46:46 2021
Terminated at Thu Sep  2 09:00:01 2021
Results reported at Thu Sep  2 09:00:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin206 160.805 24.146 292723201 292982401 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 :                                   623.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            816 sec.

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

