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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin588
RA = 160.805, Dec = 24.146
tmin = 391737601, tmax = 391996801
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='74397', job_status='RUN', time_executed='2021-09-02 09:00:08.933604', time_epoch_executed='1630598408.93' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74397

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74397/ft1_4FGL_J1043.2+2408_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74397/ft2_4FGL_J1043.2+2408_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74397/ft1_4FGL_J1043.2+2408_daily_bin588.fits outfile=/scratch/kocevski/74397/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin588.fits ra=160.805 dec=24.146 rad=12.0 tmin=391737601.0 tmax=391996801.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.44
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74397/ft1_filtered_4FGL_J1043.2+2408_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/74397/ft2_4FGL_J1043.2+2408_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/74397/ltcube_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.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/74397/ft2_4FGL_J1043.2+2408_daily_bin588.fits
.....................!
real 15.29
user 14.96
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74397/ft1_filtered_4FGL_J1043.2+2408_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/74397/ft2_4FGL_J1043.2+2408_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/74397/ltcube_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.fits outfile=/scratch/kocevski/74397/expmap_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.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/74397/ltcube_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.fits
.....................!
real 190.59
user 185.91
sys 4.02

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/74397/ft1_filtered_4FGL_J1043.2+2408_daily_bin588.fits scfile=/scratch/kocevski/74397/ft2_4FGL_J1043.2+2408_daily_bin588.fits outfile=/scratch/kocevski/74397/cmap_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74397/ft1_filtered_4FGL_J1043.2+2408_daily_bin588.fits scfile=/scratch/kocevski/74397/ft2_4FGL_J1043.2+2408_daily_bin588.fits outfile=/scratch/kocevski/74397/cmap_HighResolution_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2431       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17911E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4933       1.0000         .10000E-03   10000.    
    16 'norm      '    18.473       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12675E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94114       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98222       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=   5758.282     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     1711 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6821        .48976E-07** at limit **
   2  Prefactor     7.2427        2.9079       -.20865E-07   -.33055E-04
   3  norm          .10000E-03    2.9059       -.20760E-06** at limit **
   4  Prefactor     .10000E-03    30.068       -.48060E-06** at limit **
   5  Prefactor     .10000E-03    64.826       -.60483E-05** at limit **
   6  Prefactor     .10161E-03    6.3353       -.74308E-06** at limit **
   7  Prefactor     .18077        1.1354       -.48746E-06   -.23470E-03
   8  Prefactor     11.000        7.2644       -.51232E-06   -.82078E-04
   9  Prefactor     4.2858        9.4978        .59632E-05    .74605E-05
  10  Prefactor     .10000E-03    6.2294       -.45311E-06** at limit **
  11  Prefactor     11.131        11.775       -.26704E-05    .26278E-04
  12  Prefactor     .10000E-03    2.3361       -.26956E-07** at limit **
  13  Prefactor     7.7971        13.197       -.70246E-05   -.75843E-04
  14  Prefactor     3.0975        2.3533       -.10912E-06   -.13869E-03
  15  Prefactor     3.4935        5.5143       -.47244E-06   -.41101E-03
  16  norm          18.473        12.917       -.87399E-06   -.18180E-04
  17  Prefactor     .10002E-03    7.5020        .33655E-06** at limit **
  18  Normalizat    .94115        .16926        .60621E-06    .21788E-03
  19  Prefactor     .98221        .17810        .10161E-05    .15299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.2427
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101609
  Prefactor  = 0.180768
  Prefactor  = 10.9996
  Prefactor  = 4.28584
  Prefactor  = 0.0001
  Prefactor  = 11.131
  Prefactor  = 0.0001
  Prefactor  = 7.79705
  Prefactor  = 3.09753
  Prefactor  = 3.4935
  norm       = 18.4725
  Prefactor  = 0.00010002
  Normalizat = 0.941149
  Prefactor  = 0.982206
 **********
 **   18 **HESSE 
 **********

 FCN=   5758.282     FROM HESSE     STATUS=OK           282 CALLS     1993 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7185        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2427        2.9108        .78816E-04   -1.5170    
   3  norm          .10000E-03    2.9200        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10161E-03    8.0430        .48282E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18077        3.8373        .14917E-02   -1.5623    
   8  Prefactor     11.000        7.2881        .12080E-03   -1.5045    
   9  Prefactor     4.2858        9.2876        .19456E-03   -1.5294    
  10  Prefactor     .10000E-03    6.2344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.131        11.609        .12009E-03   -1.5041    
  12  Prefactor     .10000E-03    2.3374        .11326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7971        13.209        .14363E-03   -1.5149    
  14  Prefactor     3.0975        2.3520        .97406E-04   -1.5356    
  15  Prefactor     3.4935        5.4506        .21448E-03   -1.5334    
  16  norm          18.473        12.978        .93188E-04   -1.4848    
  17  Prefactor     .10002E-03    68.805        .39410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94115        .19712        .23219E-03   -.95029    
  19  Prefactor     .98221        .20747        .25109E-03   -.93325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57094e-08
Minuit parameter uncertainties:
  1  7.6408e-06
  2  2.91086
  3  3.76747e-06
  4  3.29355e-05
  5  6.18982e-05
  6  0.00719587
  7  1.66539
  8  7.28868
  9  9.29075
  10  2.67258e-06
  11  11.6117
  12  2.46088e-07
  13  13.2141
  14  2.35208
  15  5.45134
  16  12.9801
  17  0.00234408
  18  0.197272
  19  0.207639
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.808e-01  1.665e+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:  9.822e-01  2.076e-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:  9.411e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74397/likelihoodResults_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.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) = 5758.27961679
delta logL = 0.00209095092032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5758.27952773
delta logL = 0.00218000973837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18077       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5150       1.0000          .0000       10.000    
     3 'Normalizat'    .94015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98268       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=   5758.280     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      238 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18051        5.3533        .26212E-01    .13343E-02
   2  Index         2.5163        1.2165        .50000        .28717E-05
   3  Normalizat    .94014        .87095E-02    .45413E-01    .11849E-04
   4  Prefactor     .98269        .96515E-02    .46050E-01    .78619E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.180511
  Index      = 2.51633
  Normalizat = 0.940142
  Prefactor  = 0.982687
 **********
 **   18 **HESSE 
 **********

 FCN=   5758.280     FROM HESSE     STATUS=OK            35 CALLS      273 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18051        4.2201        .16087E-02   -1.5623    
   2  Index         2.5163        3.1462        .98767E-02   -.51983    
   3  Normalizat    .94014        .18709        .23231E-03   -.95064    
   4  Prefactor     .98269        .20631        .25104E-03   -.93309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59618e-08
Minuit parameter uncertainties:
  1  1.74524
  2  3.51951
  3  0.187215
  4  0.206479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74397': 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) = 5758.27952762
delta logL = 0.00218011184552

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.805e-01  1.745e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.516e+00  3.520e+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:  9.827e-01  2.065e-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:  9.401e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/74397/cmap_HighResolution_391737601_391996801_4FGL_J1043.2+2408_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-02 09:09:31.041114', job_id='74397', GAL2='0.98', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630598971.04', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.18e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='588' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 74397: <4FGL_J1043.2+2408_daily_bin588> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin588> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:19 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:56:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 08:56:42 2021
Terminated at Thu Sep  2 09:09:31 2021
Results reported at Thu Sep  2 09:09:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin588 160.805 24.146 391737601 391996801 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 :                                   559.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            792 sec.

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

