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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin444
RA = 160.805, Dec = 24.146
tmin = 354412801, tmax = 354672001
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='73034', job_status='RUN', time_executed='2021-09-02 08:51:28.819345', time_epoch_executed='1630597888.82' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73034

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73034/ft1_4FGL_J1043.2+2408_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73034/ft2_4FGL_J1043.2+2408_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73034/ft1_4FGL_J1043.2+2408_daily_bin444.fits outfile=/scratch/kocevski/73034/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin444.fits ra=160.805 dec=24.146 rad=12.0 tmin=354412801.0 tmax=354672001.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.49
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73034/ft2_4FGL_J1043.2+2408_daily_bin444.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/73034/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin444.fits evtable="EVENTS" outfile="/scratch/kocevski/73034/ft1_filtered_4FGL_J1043.2+2408_daily_bin444.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73034/ft1_filtered_4FGL_J1043.2+2408_daily_bin444.fits" evtable="EVENTS" scfile=/scratch/kocevski/73034/ft2_4FGL_J1043.2+2408_daily_bin444.fits sctable="SC_DATA" outfile=/scratch/kocevski/73034/ltcube_354412801_354672001_4FGL_J1043.2+2408_daily_bin444.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/73034/ft2_4FGL_J1043.2+2408_daily_bin444.fits
.....................!
real 17.81
user 17.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73034/ft1_filtered_4FGL_J1043.2+2408_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/73034/ft2_4FGL_J1043.2+2408_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/73034/ltcube_354412801_354672001_4FGL_J1043.2+2408_daily_bin444.fits outfile=/scratch/kocevski/73034/expmap_354412801_354672001_4FGL_J1043.2+2408_daily_bin444.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/73034/ltcube_354412801_354672001_4FGL_J1043.2+2408_daily_bin444.fits
.....................!
real 194.42
user 188.04
sys 5.14

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/73034/ft1_filtered_4FGL_J1043.2+2408_daily_bin444.fits scfile=/scratch/kocevski/73034/ft2_4FGL_J1043.2+2408_daily_bin444.fits outfile=/scratch/kocevski/73034/cmap_354412801_354672001_4FGL_J1043.2+2408_daily_bin444.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73034/ft1_filtered_4FGL_J1043.2+2408_daily_bin444.fits scfile=/scratch/kocevski/73034/ft2_4FGL_J1043.2+2408_daily_bin444.fits outfile=/scratch/kocevski/73034/cmap_HighResolution_354412801_354672001_4FGL_J1043.2+2408_daily_bin444.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/73034/ft1_filtered_4FGL_J1043.2+2408_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/73034/ft2_4FGL_J1043.2+2408_daily_bin444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73034/Model_4FGL_J1043.2+2408_daily_bin444.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/73034/ft1_filtered_4FGL_J1043.2+2408_daily_bin444.fits.....................!
real 51.51
user 50.03
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.571       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10541E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0311       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2578       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33134       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91011       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2021       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=   5511.592     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1634 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1701        .39665E-07** at limit **
   2  Prefactor     .10000E-03    1.8815        .69184E-07** at limit **
   3  norm          .10000E-03    3.8612        .72515E-07** at limit **
   4  Prefactor     30.582        28.098        .30357E-06    .16286E-04
   5  Prefactor     .10000E-03    320.21       -.89698E-05** at limit **
   6  Prefactor     .10000E-03    2.4754        .49276E-07** at limit **
   7  Prefactor     4.0315        2.2811        .25136E-07   -.61815E-04
   8  Prefactor     12.232        8.9344        .32884E-06   -.81435E-05
   9  Prefactor     .10000E-03    4.7919       -.28400E-06** at limit **
  10  Prefactor     .10000E-03    13.328        .41134E-07** at limit **
  11  Prefactor     1.2587        15.164        .32920E-05    .33053E-04
  12  Prefactor     13.864        13.072        .21918E-06   -.28251E-04
  13  Prefactor     5.8947        19.284       -.60630E-06   -.53171E-04
  14  Prefactor     .10000E-03    1.7253        .21845E-06** at limit **
  15  Prefactor     .10000E-03    2.9496       -.13071E-07** at limit **
  16  norm          6.6404        7.6214        .20476E-06    .38293E-05
  17  Prefactor     .45371        7.3977       -.65103E-06    .32182E-03
  18  Normalizat    .90986        .17875       -.16107E-05   -.17106E-04
  19  Prefactor     1.2020        .18942       -.53096E-06   -.66401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.5821
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.03151
  Prefactor  = 12.2316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25867
  Prefactor  = 13.8641
  Prefactor  = 5.89473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.64044
  Prefactor  = 0.453708
  Normalizat = 0.909865
  Prefactor  = 1.20198
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1782        .10682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9674        .19901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8850        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.582        28.118        .72466E-04   -1.4601    
   5  Prefactor     .10000E-03    321.97        .20727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4840        .11407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0315        2.2779        .81069E-04   -1.5306    
   8  Prefactor     12.232        8.9424        .11457E-03   -1.5008    
   9  Prefactor     .10000E-03    4.8148        .15846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2587        14.664        .39798E-03   -1.5484    
  12  Prefactor     13.864        13.012        .10760E-03   -1.4963    
  13  Prefactor     5.8947        18.556        .16526E-03   -1.5222    
  14  Prefactor     .10000E-03    1.7710        .18979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9560        .12449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6404        7.6200        .15574E-03   -1.5193    
  17  Prefactor     .45371        65.900        .38343E-02   -1.5573    
  18  Normalizat    .90986        .20745        .24993E-03   -.96114    
  19  Prefactor     1.2020        .22422        .24390E-03   -.86270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43426e-09
Minuit parameter uncertainties:
  1  3.60553e-06
  2  1.009e-05
  3  8.37364e-06
  4  28.1302
  5  0.00111537
  6  3.86645e-06
  7  2.27798
  8  8.94336
  9  6.6084e-06
  10  1.63736e-05
  11  8.59472
  12  13.0149
  13  18.5742
  14  5.33788e-06
  15  5.80431e-06
  16  7.62114
  17  10.9472
  18  0.207632
  19  0.224401
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  4.032e+00  2.278e+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.202e+00  2.244e-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.099e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.09
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.23e-05

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) = 5511.11737616
delta logL = 0.474534935919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5511.08682303
delta logL = 0.505088073925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9806       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8833       1.0000          .0000       10.000    
     3 'Normalizat'    .93140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1879       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=   5511.087     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      228 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9806        6.5152        .45050E-02    .36820E-02
   2  Index         1.8832        .82997        .17139        .18152E-05
   3  Normalizat    .93143        .17604        .45302E-01    .96583E-05
   4  Prefactor     1.1879        .19221        .55430E-01    .40856E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98056
  Index      = 1.88319
  Normalizat = 0.931428
  Prefactor  = 1.18791
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.087     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9806        2.8802        .92925E-04   -1.5262    
   2  Index         1.8832        .41208        .67316E-02   -.67304    
   3  Normalizat    .93143        .20198        .24733E-03   -.95364    
   4  Prefactor     1.1879        .22327        .24509E-03   -.86704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24477e-09
Minuit parameter uncertainties:
  1  2.88023
  2  0.412845
  3  0.202148
  4  0.223452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73034': 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) = 5511.08682298
delta logL = 0.505088120424

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  4.981e+00  2.880e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.883e+00  4.128e-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.188e+00  2.235e-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.314e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.11
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.88 +/- 0.41
Photon Flux (Free Index): 4.05e-08 +/- 2.99e-08
Energy Flux (Free Index): 3.81e-05 +/- 3.45e-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/73034/cmap_HighResolution_354412801_354672001_4FGL_J1043.2+2408_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='3.81e-05', photon_flux_error='3.36e-08', dlogl='5.05e-01', energy_flux='2.18e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-09-02 08:59:59.643355', photon_index_error2='0.41', photon_index2='1.88', ts='7.09', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='3.45e-05', EG='0.91', time_epoch_completed='1630598399.64', return_code='0', job_id='73034', GAL2='1.19', EG2='0.93', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.99e-08', ts2='8.11', photon_index='2.32' WHERE bin_id='444' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:59:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 73034: <4FGL_J1043.2+2408_daily_bin444> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin444> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:51:11 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:51:17 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:51:17 2021
Terminated at Thu Sep  2 09:00:00 2021
Results reported at Thu Sep  2 09:00:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin444 160.805 24.146 354412801 354672001 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 :                                   507.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            529 sec.

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

