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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin596
RA = 160.805, Dec = 24.146
tmin = 393811201, tmax = 394070401
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='74413', job_status='RUN', time_executed='2021-09-02 09:00:26.605410', time_epoch_executed='1630598426.61' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74413/ft1_4FGL_J1043.2+2408_daily_bin596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74413/ft2_4FGL_J1043.2+2408_daily_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74413/ft1_4FGL_J1043.2+2408_daily_bin596.fits outfile=/scratch/kocevski/74413/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin596.fits ra=160.805 dec=24.146 rad=12.0 tmin=393811201.0 tmax=394070401.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.63
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74413/ft2_4FGL_J1043.2+2408_daily_bin596.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/74413/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin596.fits evtable="EVENTS" outfile="/scratch/kocevski/74413/ft1_filtered_4FGL_J1043.2+2408_daily_bin596.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.68
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74413/ft1_filtered_4FGL_J1043.2+2408_daily_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/74413/ft2_4FGL_J1043.2+2408_daily_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/74413/ltcube_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.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/74413/ft2_4FGL_J1043.2+2408_daily_bin596.fits
.....................!
real 16.17
user 15.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74413/ft1_filtered_4FGL_J1043.2+2408_daily_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/74413/ft2_4FGL_J1043.2+2408_daily_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/74413/ltcube_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.fits outfile=/scratch/kocevski/74413/expmap_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.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/74413/ltcube_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.fits
.....................!
real 192.53
user 186.63
sys 5.30

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/74413/ft1_filtered_4FGL_J1043.2+2408_daily_bin596.fits scfile=/scratch/kocevski/74413/ft2_4FGL_J1043.2+2408_daily_bin596.fits outfile=/scratch/kocevski/74413/cmap_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74413/ft1_filtered_4FGL_J1043.2+2408_daily_bin596.fits scfile=/scratch/kocevski/74413/ft2_4FGL_J1043.2+2408_daily_bin596.fits outfile=/scratch/kocevski/74413/cmap_HighResolution_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=160.805 yref=24.146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.830       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6087       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5155       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.982       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.867       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.266       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1709       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90253       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=   6693.522     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1852 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.830        7.9155       -.16400E-07    .97700E-05
   2  Prefactor     3.6087        2.3518       -.47833E-08   -.36524E-04
   3  norm          5.5154        5.2602        .11035E-05   -.99237E-03
   4  Prefactor     .10000E-03    23.057       -.23086E-05** at limit **
   5  Prefactor     .10000E-03    22.711        .21411E-05** at limit **
   6  Prefactor     .10000E-03    3.6262       -.41428E-07** at limit **
   7  Prefactor     .10000E-03    .99417        .31360E-08** at limit **
   8  Prefactor     9.0818        8.3061        .15290E-06    .17148E-05
   9  Prefactor     12.230        8.3825       -.13647E-06   -.16946E-03
  10  Prefactor     19.981        22.765       -.20472E-06   -.37779E-04
  11  Prefactor     .10000E-03    6.0204        .62869E-06** at limit **
  12  Prefactor     .10000E-03    7.7219        .15918E-05** at limit **
  13  Prefactor     14.867        11.947       -.77593E-07   -.46290E-04
  14  Prefactor     10.309        3.3844       -.63526E-07   -.36529E-03
  15  Prefactor     .10000E-03    6.8624       -.21677E-05** at limit **
  16  norm          .10000E-03    2.9435        .21904E-07** at limit **
  17  Prefactor     15.265        11.621        .24697E-06   -.10488E-03
  18  Normalizat    1.1710        .17193        .14273E-07    .57244E-05
  19  Prefactor     .90246        .17770       -.22945E-06    .13702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8301
  Prefactor  = 3.60865
  norm       = 5.51544
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.0818
  Prefactor  = 12.2305
  Prefactor  = 19.9815
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.867
  Prefactor  = 10.309
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 15.2647
  Normalizat = 1.17097
  Prefactor  = 0.902463
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.522     FROM HESSE     STATUS=OK           270 CALLS     2122 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.830        7.9206        .97629E-04   -1.4887    
   2  Prefactor     3.6087        2.3531        .97611E-04   -1.5328    
   3  norm          5.5154        6.2940        .85540E-03   -1.5238    
   4  Prefactor     .10000E-03    23.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7175        .30416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0356        .15917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0818        8.3291        .13299E-03   -1.5105    
   9  Prefactor     12.230        8.4146        .11454E-03   -1.5008    
  10  Prefactor     19.981        22.808        .89601E-04   -1.4814    
  11  Prefactor     .10000E-03    6.1008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.867        11.944        .10388E-03   -1.4937    
  14  Prefactor     10.309        3.4041        .83127E-04   -1.5066    
  15  Prefactor     .10000E-03    7.3323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9491        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.265        11.708        .51255E-03   -1.4926    
  18  Normalizat    1.1710        .20571        .24013E-03   -.87505    
  19  Prefactor     .90246        .21129        .28566E-03   -.96055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08316e-09
Minuit parameter uncertainties:
  1  7.92107
  2  2.35317
  3  6.29477
  4  0.000341866
  5  0.000315494
  6  1.66022e-06
  7  5.17009e-07
  8  8.33012
  9  8.41537
  10  22.8184
  11  5.65098e-05
  12  0.0001368
  13  11.9461
  14  3.4042
  15  0.000163539
  16  1.33423e-06
  17  11.7095
  18  0.205857
  19  0.21148
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  5.170e-07  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.025e-01  2.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.171e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74413/likelihoodResults_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.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): 102
logL (Free Index) = 6693.52656255
delta logL = -0.00457821290365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6693.52198607
delta logL = -1.72904310602e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3057       1.0000          .0000       10.000    
     3 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6693.522     FROM MIGRAD    STATUS=FAILED       104 CALLS      260 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.004        .16116E-02** at limit **
   2  Index         1.9580        6.8308        .50000       -.41602E-05
   3  Normalizat    1.1710        .28513E-01    .24013E-03    .19856E-02
   4  Prefactor     .90247        .30337E-01    .28566E-03    .17273E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6693.522     FROM SIMPLEX   STATUS=UNCHANGED    191 CALLS      451 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.004        .16358E-03** at limit **
   2  Index         1.9580        6.8308        .37144E-06   -.41602E-05
   3  Normalizat    1.1710        .28513E-01    .60077E-08    .19856E-02
   4  Prefactor     .90247        .30337E-01    .45245E-08    .17273E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6693.522     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      518 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4473        .64465E-04** at limit **
   2  Index         1.9578        8.8078        .50000       -.42240E-05
   3  Normalizat    1.1710        .19762        .96053E-05   -.30537E-04
   4  Prefactor     .90246        .21020        .11427E-04    .21690E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95785
  Normalizat = 1.17097
  Prefactor  = 0.902463
 **********
 **   18 **HESSE 
 **********

 FCN=   6693.522     FROM HESSE     STATUS=OK            27 CALLS      545 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2035        .12893E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9578        5.8460        .50000       -.65408    
   3  Normalizat    1.1710        .19732        .19211E-05   -.87505    
   4  Prefactor     .90246        .20984        .22853E-05   -.96055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93196e-09
Minuit parameter uncertainties:
  1  4.85452e-06
  2  58.6494
  3  0.197449
  4  0.210028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74413': 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) = 6693.5219779
delta logL = 6.44227748126e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  4.855e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.958e+00  5.865e+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:  9.025e-01  2.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.171e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/74413/cmap_HighResolution_393811201_394070401_4FGL_J1043.2+2408_daily_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-02 09:10:55.396346', job_id='74413', GAL2='0.90', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630599055.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='596' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 74413: <4FGL_J1043.2+2408_daily_bin596> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin596 160.805 24.146 393811201 394070401 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 :                                   626.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            876 sec.

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

