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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin287
RA = 160.805, Dec = 24.146
tmin = 313718401, tmax = 313977601
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='72020', job_status='RUN', time_executed='2021-09-02 08:49:25.821562', time_epoch_executed='1630597765.82' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72020/ft1_4FGL_J1043.2+2408_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72020/ft2_4FGL_J1043.2+2408_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72020/ft1_4FGL_J1043.2+2408_daily_bin287.fits outfile=/scratch/kocevski/72020/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin287.fits ra=160.805 dec=24.146 rad=12.0 tmin=313718401.0 tmax=313977601.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.34
user 3.15
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72020/ft1_filtered_4FGL_J1043.2+2408_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/72020/ft2_4FGL_J1043.2+2408_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/72020/ltcube_313718401_313977601_4FGL_J1043.2+2408_daily_bin287.fits outfile=/scratch/kocevski/72020/expmap_313718401_313977601_4FGL_J1043.2+2408_daily_bin287.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/72020/ltcube_313718401_313977601_4FGL_J1043.2+2408_daily_bin287.fits
.....................!
real 192.51
user 187.12
sys 4.90

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/72020/ft1_filtered_4FGL_J1043.2+2408_daily_bin287.fits scfile=/scratch/kocevski/72020/ft2_4FGL_J1043.2+2408_daily_bin287.fits outfile=/scratch/kocevski/72020/cmap_313718401_313977601_4FGL_J1043.2+2408_daily_bin287.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72020/ft1_filtered_4FGL_J1043.2+2408_daily_bin287.fits scfile=/scratch/kocevski/72020/ft2_4FGL_J1043.2+2408_daily_bin287.fits outfile=/scratch/kocevski/72020/cmap_HighResolution_313718401_313977601_4FGL_J1043.2+2408_daily_bin287.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5879       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56350E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    10.786       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.808       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2770       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6967       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .85204       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1369       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=   5368.858     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1681 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5877        6.5120       -.31872E-06    .61351E-04
   2  Prefactor     .61923E-01    1.0894       -.93020E-06    .13350E-02
   3  norm          10.785        9.0043        .59048E-06   -.42266E-04
   4  Prefactor     .10000E-03    88.365        .67566E-05** at limit **
   5  Prefactor     .10000E-03    89.407       -.86771E-05** at limit **
   6  Prefactor     .10000E-03    6.3269       -.56300E-06** at limit **
   7  Prefactor     .10000E-03    1.9824        .71764E-07** at limit **
   8  Prefactor     10.808        7.1778       -.52389E-06   -.40565E-04
   9  Prefactor     9.9846        9.4214       -.18457E-05    .82144E-04
  10  Prefactor     .10000E-03    11.183       -.10850E-05** at limit **
  11  Prefactor     .10000E-03    4.4965        .44812E-06** at limit **
  12  Prefactor     10.111        10.549       -.51346E-05   -.21756E-04
  13  Prefactor     6.2786        15.629       -.26359E-05    .12667E-04
  14  Prefactor     .10000E-03    1.3033        .69081E-06** at limit **
  15  Prefactor     .10000E-03    4.1766       -.54977E-07** at limit **
  16  norm          .10000E-03    7.3239        .92498E-06** at limit **
  17  Prefactor     6.6969        11.701       -.23122E-05   -.29632E-04
  18  Normalizat    .85203        .17095        .29610E-05   -.43167E-05
  19  Prefactor     1.1369        .18385       -.29190E-07    .12673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.58767
  Prefactor  = 0.0619229
  norm       = 10.7848
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8083
  Prefactor  = 9.98462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1114
  Prefactor  = 6.2786
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.69691
  Normalizat = 0.852028
  Prefactor  = 1.13692
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5877        6.5057        .13679E-03   -1.5122    
   2  Prefactor     .61923E-01    12.794        .14372E-02   -1.5658    
   3  norm          10.785        8.9909        .12199E-03   -1.5051    
   4  Prefactor     .10000E-03    89.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    90.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4744        .35942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0650        .20092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.808        7.1835        .12187E-03   -1.5050    
   9  Prefactor     9.9846        9.3591        .12681E-03   -1.5076    
  10  Prefactor     .10000E-03    11.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5296        .15174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.111        10.617        .12602E-03   -1.5072    
  13  Prefactor     6.2786        15.543        .16022E-03   -1.5207    
  14  Prefactor     .10000E-03    2.3585        .16075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2143        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6969        11.726        .15506E-03   -1.5190    
  18  Normalizat    .85203        .19814        .23962E-03   -.98167    
  19  Prefactor     1.1369        .21551        .23796E-03   -.88295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06382e-08
Minuit parameter uncertainties:
  1  6.50623
  2  1.77912
  3  8.99198
  4  0.000774095
  5  0.000361115
  6  1.18858e-05
  7  4.62795e-06
  8  7.18412
  9  9.36051
  10  1.21699e-05
  11  2.3812e-05
  12  10.6194
  13  15.5528
  14  0.000101818
  15  1.64404e-05
  16  3.5805e-05
  17  11.7304
  18  0.198306
  19  0.215671
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  4.628e-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:  1.137e+00  2.157e-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:  8.520e-01  1.983e-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: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72020/likelihoodResults_313718401_313977601_4FGL_J1043.2+2408_daily_bin287.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) = 5368.85983714
delta logL = -0.00230584579094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.85753138
delta logL = -9.23782863538e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3445       1.0000          .0000       10.000    
     3 'Normalizat'    .85202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1370       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=   5368.858     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      214 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7666        .32235E-01** at limit **
   2  Index         2.3663        6.1562        .50000       -.90935E-04
   3  Normalizat    .85203        .48349E-02    .44285E-01   -.65603E-04
   4  Prefactor     1.1369        .54914E-02    .53819E-01   -.79389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36635
  Normalizat = 0.85203
  Prefactor  = 1.13692
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.858     FROM HESSE     STATUS=OK            35 CALLS      249 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3450        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3663        5.7988        .50000       -.55475    
   3  Normalizat    .85203        .18822        .23962E-03   -.98167    
   4  Prefactor     1.1369        .21376        .23796E-03   -.88295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59617e-08
Minuit parameter uncertainties:
  1  9.49349e-05
  2  6.70639
  3  0.188362
  4  0.213925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72020': 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): 0
logL (Free Index) = 5368.85753036
delta logL = 9.33152477955e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.137e+00  2.139e-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:  8.520e-01  1.884e-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/72020/cmap_HighResolution_313718401_313977601_4FGL_J1043.2+2408_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-09-02 08:58:28.715085', job_id='72020', GAL2='1.14', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630598308.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='9.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='287' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:58:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 72020: <4FGL_J1043.2+2408_daily_bin287> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin287 160.805 24.146 313718401 313977601 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 :                                   539.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            713 sec.

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

