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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin944
RA = 160.805, Dec = 24.146
tmin = 484012801, tmax = 484272001
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='75825', job_status='RUN', time_executed='2021-09-02 09:04:36.269566', time_epoch_executed='1630598676.27' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75825

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75825/ft1_4FGL_J1043.2+2408_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75825/ft1_4FGL_J1043.2+2408_daily_bin944.fits outfile=/scratch/kocevski/75825/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin944.fits ra=160.805 dec=24.146 rad=12.0 tmin=484012801.0 tmax=484272001.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.45
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.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/75825/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin944.fits evtable="EVENTS" outfile="/scratch/kocevski/75825/ft1_filtered_4FGL_J1043.2+2408_daily_bin944.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/75825/ft1_filtered_4FGL_J1043.2+2408_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/75825/ltcube_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.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/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits
.....................!
real 14.33
user 13.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75825/ft1_filtered_4FGL_J1043.2+2408_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/75825/ltcube_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.fits outfile=/scratch/kocevski/75825/expmap_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.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/75825/ltcube_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.fits
.....................!
real 191.07
user 185.50
sys 5.08

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/75825/ft1_filtered_4FGL_J1043.2+2408_daily_bin944.fits scfile=/scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits outfile=/scratch/kocevski/75825/cmap_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75825/ft1_filtered_4FGL_J1043.2+2408_daily_bin944.fits scfile=/scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits outfile=/scratch/kocevski/75825/cmap_HighResolution_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.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.61
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75825/ft1_filtered_4FGL_J1043.2+2408_daily_bin944.fits', '/scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits', expMap='/scratch/kocevski/75825/expmap_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.fits', expCube='/scratch/kocevski/75825/ltcube_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75825/Model_4FGL_J1043.2+2408_daily_bin944.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/75825/ft1_filtered_4FGL_J1043.2+2408_daily_bin944.fits
Spacecraft file(s): /scratch/kocevski/75825/ft2_4FGL_J1043.2+2408_daily_bin944.fits
Exposure map: /scratch/kocevski/75825/expmap_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.fits
Exposure cube: /scratch/kocevski/75825/ltcube_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75825/Model_4FGL_J1043.2+2408_daily_bin944.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5794.61281862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.954       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3605       1.0000         .10000E-03   10000.    
     3 'norm      '    92.613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5976       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0492       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1582       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7596       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3779       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80499       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1244       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=   5794.115     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1660 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.954        9.6157        .21941E-06    .78769E-05
   2  Prefactor     2.3609        2.5393        .17949E-06   -.11873E-04
   3  norm          92.613        16.743        .13382E-06   -.65075E-04
   4  Prefactor     .10027E-03    32.351       -.27050E-05** at limit **
   5  Prefactor     .10000E-03    17.647        .43069E-07** at limit **
   6  Prefactor     3.2639        7.2880        .89714E-06   -.23378E-03
   7  Prefactor     1.5983        2.0973       -.25893E-06   -.86116E-03
   8  Prefactor     8.0506        7.3286        .37574E-06   -.23354E-03
   9  Prefactor     10.686        9.0649       -.18550E-05   -.11903E-02
  10  Prefactor     9.1614        18.319        .76806E-06   -.22978E-03
  11  Prefactor     1.9018        19.350        .61232E-05   -.11225E-03
  12  Prefactor     .10000E-03    2.0233       -.71764E-08** at limit **
  13  Prefactor     .10000E-03    7.2976       -.10073E-05** at limit **
  14  Prefactor     1.6681        1.8121        .93822E-08   -.10527E-03
  15  Prefactor     .10000E-03    3.0518        .29499E-07** at limit **
  16  norm          1.7602        14.623        .11405E-04   -.16268E-03
  17  Prefactor     7.3769        8.3751        .43810E-07   -.11632E-04
  18  Normalizat    .80494        .18662       -.26681E-05   -.29780E-03
  19  Prefactor     1.1243        .19450        .34284E-06   -.32752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9537
  Prefactor  = 2.36092
  norm       = 92.6132
  Prefactor  = 0.000100268
  Prefactor  = 0.0001
  Prefactor  = 3.26393
  Prefactor  = 1.59829
  Prefactor  = 8.05058
  Prefactor  = 10.6865
  Prefactor  = 9.16142
  Prefactor  = 1.9018
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.66814
  Prefactor  = 0.0001
  norm       = 1.76024
  Prefactor  = 7.37689
  Normalizat = 0.804944
  Prefactor  = 1.12431
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.115     FROM HESSE     STATUS=OK           276 CALLS     1936 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.954        9.6130        .10028E-03   -1.4909    
   2  Prefactor     2.3609        2.5255        .11982E-03   -1.5401    
   3  norm          92.613        16.740        .41759E-04   -1.3780    
   4  Prefactor     .10027E-03    252.90        .81926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2639        7.2358        .22418E-03   -1.5347    
   7  Prefactor     1.5983        2.0693        .11763E-03   -1.5455    
   8  Prefactor     8.0506        7.3265        .14132E-03   -1.5140    
   9  Prefactor     10.686        9.1870        .12255E-03   -1.5054    
  10  Prefactor     9.1614        18.280        .13244E-03   -1.5103    
  11  Prefactor     1.9018        19.472        .30195E-03   -1.5432    
  12  Prefactor     .10000E-03    2.0238        .10574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6681        1.7981        .10309E-03   -1.5450    
  15  Prefactor     .10000E-03    3.0626        .12984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7602        14.848        .15795E-02   -1.5443    
  17  Prefactor     7.3769        8.3718        .14766E-03   -1.5165    
  18  Normalizat    .80494        .21727        .26422E-03   -.99886    
  19  Prefactor     1.1243        .22859        .25515E-03   -.88693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39753e-09
Minuit parameter uncertainties:
  1  9.61394
  2  2.52558
  3  16.7413
  4  0.0165262
  5  4.23562e-06
  6  7.23775
  7  2.06942
  8  7.3273
  9  9.18825
  10  18.2911
  11  12.1754
  12  1.30316e-06
  13  0.000147074
  14  1.79811
  15  4.16164e-06
  16  10.2277
  17  8.37318
  18  0.217504
  19  0.228785
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.598e+00  2.069e+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.124e+00  2.288e-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.049e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/75825/likelihoodResults_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.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) = 5793.85063383
delta logL = 0.264173480955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5793.84414751
delta logL = 0.270659801229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8077       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5759       1.0000          .0000       10.000    
     3 'Normalizat'    .82334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1109       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=   5793.844     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8077        4.3685        .77700E-02    .26081E-02
   2  Index         1.5759        .99895        .28997       -.49716E-04
   3  Normalizat    .82333        .17311        .43914E-01    .16842E-04
   4  Prefactor     1.1109        .19485        .57982E-01    .60037E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80768
  Index      = 1.57587
  Normalizat = 0.823333
  Prefactor  = 1.11095
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.844     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8077        2.6253        .12062E-03   -1.5439    
   2  Index         1.5759        .84714        .10281E-01   -.75437    
   3  Normalizat    .82333        .20125        .26155E-03   -.99209    
   4  Prefactor     1.1109        .22648        .25640E-03   -.89117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10298e-09
Minuit parameter uncertainties:
  1  2.62547
  2  0.854969
  3  0.201429
  4  0.22668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75825': 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) = 5793.84414749
delta logL = 0.270659824664

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.808e+00  2.625e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.576e+00  8.550e-01  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.111e+00  2.267e-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.233e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.58 +/- 0.85
Photon Flux (Free Index): 1.10e-08 +/- 2.02e-08
Energy Flux (Free Index): 2.71e-05 +/- 5.15e-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/75825/cmap_HighResolution_484012801_484272001_4FGL_J1043.2+2408_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', comment='SUCCESS', energy_flux2='2.71e-05', dlogl='2.71e-01', photon_flux2='1.10e-08', job_status='DONE', time_completed='2021-09-02 09:14:08.836055', photon_index_error2='0.85', photon_index2='1.58', ts='0.82', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.34e-08', energy_flux_error2='5.15e-05', EG='0.80', time_epoch_completed='1630599248.84', return_code='0', job_id='75825', GAL2='1.11', EG2='0.82', return_code2='0', photon_flux_error2='2.02e-08', ts2='1.36', photon_index='2.32' WHERE bin_id='944' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 75825: <4FGL_J1043.2+2408_daily_bin944> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin944> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:35 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:02:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:02:44 2021
Terminated at Thu Sep  2 09:14:10 2021
Results reported at Thu Sep  2 09:14:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin944 160.805 24.146 484012801 484272001 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 :                                   563.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            755 sec.

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

