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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin686
RA = 160.805, Dec = 24.146
tmin = 417139201, tmax = 417398401
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='74563', job_status='RUN', time_executed='2021-09-02 08:59:41.606833', time_epoch_executed='1630598381.61' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74563/ft1_4FGL_J1043.2+2408_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74563/ft2_4FGL_J1043.2+2408_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74563/ft1_4FGL_J1043.2+2408_daily_bin686.fits outfile=/scratch/kocevski/74563/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin686.fits ra=160.805 dec=24.146 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.47
user 5.20
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74563/ft1_filtered_4FGL_J1043.2+2408_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/74563/ft2_4FGL_J1043.2+2408_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/74563/ltcube_417139201_417398401_4FGL_J1043.2+2408_daily_bin686.fits outfile=/scratch/kocevski/74563/expmap_417139201_417398401_4FGL_J1043.2+2408_daily_bin686.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/74563/ltcube_417139201_417398401_4FGL_J1043.2+2408_daily_bin686.fits
.....................!
real 192.43
user 186.60
sys 4.24

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/74563/ft1_filtered_4FGL_J1043.2+2408_daily_bin686.fits scfile=/scratch/kocevski/74563/ft2_4FGL_J1043.2+2408_daily_bin686.fits outfile=/scratch/kocevski/74563/cmap_417139201_417398401_4FGL_J1043.2+2408_daily_bin686.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74563/ft1_filtered_4FGL_J1043.2+2408_daily_bin686.fits scfile=/scratch/kocevski/74563/ft2_4FGL_J1043.2+2408_daily_bin686.fits outfile=/scratch/kocevski/74563/cmap_HighResolution_417139201_417398401_4FGL_J1043.2+2408_daily_bin686.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .63471       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72698E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10728E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.158       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5178       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .58133       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3742       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=   4712.678     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1687 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6821        4.7977       -.65800E-06    .65757E-03
   2  Prefactor     .10000E-03    1.2920        .92669E-07** at limit **
   3  norm          .10000E-03    3.8276        .68555E-07** at limit **
   4  Prefactor     .10001E-03    30.883        .57397E-05** at limit **
   5  Prefactor     .10000E-03    13.371        .79033E-07** at limit **
   6  Prefactor     6.4195        7.6628        .62917E-06    .28968E-03
   7  Prefactor     .63408        2.0378       -.80776E-07    .12837E-02
   8  Prefactor     .10002E-03    19.346        .11370E-04** at limit **
   9  Prefactor     .10000E-03    24.290        .14260E-04** at limit **
  10  Prefactor     .10000E-03    77.241        .65212E-05** at limit **
  11  Prefactor     11.155        14.921       -.36667E-06   -.24805E-03
  12  Prefactor     9.2286        10.597       -.67407E-07   -.47899E-05
  13  Prefactor     32.847        26.014       -.27093E-05   -.53313E-03
  14  Prefactor     1.5970        2.4339        .58607E-07    .49029E-03
  15  Prefactor     .10000E-03    4.1299        .10248E-06** at limit **
  16  norm          9.5167        11.098       -.64609E-08    .38620E-04
  17  Prefactor     .10000E-03    6.9359        .52357E-07** at limit **
  18  Normalizat    .58156        .19107        .12390E-06   -.33199E-03
  19  Prefactor     1.3739        .20160       -.64068E-07   -.43019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68213
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 6.41946
  Prefactor  = 0.63408
  Prefactor  = 0.000100019
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 11.1555
  Prefactor  = 9.22861
  Prefactor  = 32.8473
  Prefactor  = 1.59696
  Prefactor  = 0.0001
  norm       = 9.51674
  Prefactor  = 0.0001
  Normalizat = 0.581565
  Prefactor  = 1.37394
 **********
 **   18 **HESSE 
 **********

 FCN=   4712.678     FROM HESSE     STATUS=OK           270 CALLS     1957 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6821        4.6894        .24163E-03   -1.5449    
   2  Prefactor     .10000E-03    2.1219        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8536        .13115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    31.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4195        7.5893        .15841E-03   -1.5201    
   7  Prefactor     .63408        1.9960        .16431E-03   -1.5549    
   8  Prefactor     .10002E-03    30.529        .24913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.768        .34411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    78.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.155        14.765        .11993E-03   -1.5040    
  12  Prefactor     9.2286        10.551        .13192E-03   -1.5100    
  13  Prefactor     32.847        26.243        .69917E-04   -1.4561    
  14  Prefactor     1.5970        2.4000        .12455E-03   -1.5455    
  15  Prefactor     .10000E-03    4.1469        .13625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5167        11.096        .12990E-03   -1.5091    
  17  Prefactor     .10000E-03    6.9596        .17657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .58156        .22229        .29282E-03   -1.0877    
  19  Prefactor     1.3739        .23754        .21866E-03   -.81134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42718e-09
Minuit parameter uncertainties:
  1  4.69046
  2  1.56954e-05
  3  2.85298e-06
  4  0.000791608
  5  4.74504e-06
  6  7.59047
  7  1.99623
  8  0.00151756
  9  0.000393896
  10  0.000861656
  11  14.7702
  12  10.5528
  13  26.2526
  14  2.40017
  15  1.15859e-05
  16  11.098
  17  5.85104e-06
  18  0.222635
  19  0.237726
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  6.341e-01  1.996e+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:  1.374e+00  2.377e-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:  5.816e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74563/likelihoodResults_417139201_417398401_4FGL_J1043.2+2408_daily_bin686.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) = 4712.58197575
delta logL = 0.0960569316985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4712.57143891
delta logL = 0.10659377164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43277       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1927       1.0000          .0000       10.000    
     3 'Normalizat'    .56070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3870       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=   4712.571     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43167        13.425        .10993E-01    .11678E-02
   2  Index         3.1933        3.3035        .21699        .41151E-04
   3  Normalizat    .56097        .29408E-01    .67276E-01   -.29282E-04
   4  Prefactor     1.3868        .32455E-01    .49258E-01   -.68116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.431667
  Index      = 3.19328
  Normalizat = 0.560974
  Prefactor  = 1.38676
 **********
 **   18 **HESSE 
 **********

 FCN=   4712.571     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43167        3.6417        .79351E-04   -1.5577    
   2  Index         3.1933        3.2364        .85239E-02   -.36971    
   3  Normalizat    .56097        .22450        .29776E-03   -1.0967    
   4  Prefactor     1.3868        .24268        .21775E-03   -.80763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15262e-08
Minuit parameter uncertainties:
  1  2.50749
  2  3.57726
  3  0.224866
  4  0.242883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74563': 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) = 4712.57143778
delta logL = 0.106594904314

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  4.317e-01  2.507e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.193e+00  3.577e+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.387e+00  2.429e-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:  5.610e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/74563/cmap_HighResolution_417139201_417398401_4FGL_J1043.2+2408_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-02 09:08:25.878326', job_id='74563', GAL2='1.39', fit_tolerance='1e-08', EG2='0.56', EG='0.58', time_epoch_completed='1630598905.88', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.07e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='686' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:08:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 74563: <4FGL_J1043.2+2408_daily_bin686> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin686 160.805 24.146 417139201 417398401 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 :                                   517.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            714 sec.

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

