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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin175
RA = 160.805, Dec = 24.146
tmin = 284688001, tmax = 284947201
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='71864', job_status='RUN', time_executed='2021-09-02 08:50:25.383665', time_epoch_executed='1630597825.38' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71864

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71864/ft1_4FGL_J1043.2+2408_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71864/ft2_4FGL_J1043.2+2408_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71864/ft1_4FGL_J1043.2+2408_daily_bin175.fits outfile=/scratch/kocevski/71864/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin175.fits ra=160.805 dec=24.146 rad=12.0 tmin=284688001.0 tmax=284947201.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.64
user 3.43
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71864/ft1_filtered_4FGL_J1043.2+2408_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/71864/ft2_4FGL_J1043.2+2408_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/71864/ltcube_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.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/71864/ft2_4FGL_J1043.2+2408_daily_bin175.fits
.....................!
real 16.49
user 15.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71864/ft1_filtered_4FGL_J1043.2+2408_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/71864/ft2_4FGL_J1043.2+2408_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/71864/ltcube_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.fits outfile=/scratch/kocevski/71864/expmap_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.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/71864/ltcube_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.fits
.....................!
real 190.88
user 186.48
sys 3.85

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/71864/ft1_filtered_4FGL_J1043.2+2408_daily_bin175.fits scfile=/scratch/kocevski/71864/ft2_4FGL_J1043.2+2408_daily_bin175.fits outfile=/scratch/kocevski/71864/cmap_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.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/71864/ft1_filtered_4FGL_J1043.2+2408_daily_bin175.fits scfile=/scratch/kocevski/71864/ft2_4FGL_J1043.2+2408_daily_bin175.fits outfile=/scratch/kocevski/71864/cmap_HighResolution_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.892       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38730E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.352       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1248       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2282       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3413       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .64466       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=   5559.218     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1601 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.889        7.9368       -.15957E-07    .10964E-04
   2  Prefactor     .10000E-03    .83276        .21275E-07** at limit **
   3  norm          24.811        11.629        .66239E-07   -.49290E-05
   4  Prefactor     .10000E-03    30.683        .46309E-05** at limit **
   5  Prefactor     .10000E-03    28.720       -.17586E-05** at limit **
   6  Prefactor     .10000E-03    11.263        .98314E-07** at limit **
   7  Prefactor     1.7872        2.5660       -.60561E-06    .13380E-03
   8  Prefactor     .10000E-03    1.8896       -.13993E-07** at limit **
   9  Prefactor     .10000E-03    28.841        .64459E-05** at limit **
  10  Prefactor     .10000E-03    13.571        .13662E-05** at limit **
  11  Prefactor     15.365        10.777       -.61787E-06   -.13802E-03
  12  Prefactor     .10000E-03    3.5322        .45360E-07** at limit **
  13  Prefactor     7.1291        7.0790        .35257E-07   -.64534E-04
  14  Prefactor     .10000E-03    1.6017        .13172E-06** at limit **
  15  Prefactor     .10000E-03    2.8979        .12887E-06** at limit **
  16  norm          8.0886        13.938        .89402E-06    .39529E-04
  17  Prefactor     2.2299        8.8579       -.16085E-05    .83681E-04
  18  Normalizat    1.3413        .18376       -.43271E-06   -.52749E-04
  19  Prefactor     .64478        .18257        .34329E-06   -.94809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8885
  Prefactor  = 0.0001
  norm       = 24.8109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.365
  Prefactor  = 0.0001
  Prefactor  = 7.12911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.08863
  Prefactor  = 2.2299
  Normalizat = 1.3413
  Prefactor  = 0.644782
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.218     FROM HESSE     STATUS=OK           266 CALLS     1867 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.889        7.9342        .12140E-03   -1.5048    
   2  Prefactor     .10000E-03    .83737        .66431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.811        11.635        .80414E-04   -1.4711    
   4  Prefactor     .10000E-03    31.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7872        2.5499        .13496E-03   -1.5441    
   8  Prefactor     .10000E-03    1.8931        .10009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.499        .36005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.365        10.521        .10222E-03   -1.4924    
  12  Prefactor     .10000E-03    3.5371        .13686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1291        7.0651        .15028E-03   -1.5174    
  14  Prefactor     .10000E-03    1.6360        .92095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9199        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0886        14.054        .14083E-03   -1.5139    
  17  Prefactor     2.2299        8.8134        .27542E-03   -1.5409    
  18  Normalizat    1.3413        .21634        .21626E-03   -.82342    
  19  Prefactor     .64478        .21374        .30702E-03   -1.0573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04675e-10
Minuit parameter uncertainties:
  1  7.93496
  2  6.3153e-07
  3  11.6365
  4  0.000162435
  5  4.75438e-05
  6  6.42919e-05
  7  2.55001
  8  7.14799e-07
  9  4.17173e-05
  10  3.45631e-05
  11  10.5221
  12  9.90732e-07
  13  7.06597
  14  1.18721e-06
  15  4.91172e-06
  16  14.0599
  17  8.81853
  18  0.216487
  19  0.21401
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.787e+00  2.550e+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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  6.448e-01  2.140e-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.341e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71864/likelihoodResults_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.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) = 5558.75712508
delta logL = 0.460971888351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5558.75517879
delta logL = 0.462918184173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84279       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3051       1.0000          .0000       10.000    
     3 'Normalizat'    1.2947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67557       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=   5558.755     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      291 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84289        32.493        .59773E-03    .22816E-02
   2  Index         3.3051        6.5678        .62305E-02    .18821E-03
   3  Normalizat    1.2947        .20896        .21935E-03    .20714E-03
   4  Prefactor     .67560        .22345        .30047E-03    .14718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.842894
  Index      = 3.3051
  Normalizat = 1.29466
  Prefactor  = 0.675603
 **********
 **   18 **HESSE 
 **********

 FCN=   5558.755     FROM HESSE     STATUS=OK            27 CALLS      318 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84289        1.8534        .23909E-04   -1.5524    
   2  Index         3.3051        1.2249        .24922E-03   -.34583    
   3  Normalizat    1.2947        .21716        .43870E-04   -.83726    
   4  Prefactor     .67560        .21770        .12019E-04   -1.0449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26115e-10
Minuit parameter uncertainties:
  1  1.8535
  2  1.2392
  3  0.217308
  4  0.217977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71864': 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) = 5558.75517876
delta logL = 0.462918208793

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  8.429e-01  1.854e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.305e+00  1.239e+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:  6.756e-01  2.180e-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.295e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 160.805 24.146
Photon Index (Free Index): 3.31 +/- 1.24
Photon Flux (Free Index): 6.66e-08 +/- 6.35e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.09e-05

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/71864/cmap_HighResolution_284688001_284947201_4FGL_J1043.2+2408_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.52e-03', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='4.63e-01', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-02 08:59:32.480581', photon_index_error2='1.24', photon_index2='3.31', ts='0.64', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.09e-05', EG='1.34', time_epoch_completed='1630598372.48', return_code='0', job_id='71864', GAL2='0.68', EG2='1.29', return_code2='0', photon_flux_error2='6.35e-08', ts2='1.63', photon_index='2.32' WHERE bin_id='175' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 71864: <4FGL_J1043.2+2408_daily_bin175> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin175 160.805 24.146 284688001 284947201 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 :                                   544.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             261.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            793 sec.

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

