/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 71 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7462
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1059.2-1134_daily_bin1712
RA = 164.806, Dec = -11.572
tmin = 683078401, tmax = 683337601
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='98915', job_status='RUN', time_executed='2022-09-16 15:42:37.899973', time_epoch_executed='1663368157.9' WHERE source_name='4FGL J1059.2-1134' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98915/ft1_4FGL_J1059.2-1134_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98915/ft1_4FGL_J1059.2-1134_daily_bin1712.fits outfile=/scratch/kocevski/98915/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin1712.fits ra=164.806 dec=-11.572 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.82
user 4.55
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.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/98915/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.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.53
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 798

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/98915/ltcube_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.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/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits
.....................!
real 15.60
user 14.94
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/98915/ltcube_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.fits outfile=/scratch/kocevski/98915/expmap_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.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/98915/ltcube_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.fits
.....................!
real 194.46
user 187.25
sys 4.97

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1059.2-1134 @ 164.806 -11.572

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits scfile=/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits outfile=/scratch/kocevski/98915/cmap_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.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=164.806 yref=-11.572 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits scfile=/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits outfile=/scratch/kocevski/98915/cmap_HighResolution_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.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=164.806 yref=-11.572 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98915/Model_4FGL_J1059.2-1134_daily_bin1712.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/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits.....................!
real 77.57
user 75.32
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits', '/scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits', expMap='/scratch/kocevski/98915/expmap_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.fits', expCube='/scratch/kocevski/98915/ltcube_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98915/Model_4FGL_J1059.2-1134_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.2-1134'

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  8.168e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
292        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  4.525e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  6.976e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/98915/ft1_filtered_4FGL_J1059.2-1134_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/98915/ft2_4FGL_J1059.2-1134_daily_bin1712.fits
Exposure map: /scratch/kocevski/98915/expmap_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.fits
Exposure cube: /scratch/kocevski/98915/ltcube_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98915/Model_4FGL_J1059.2-1134_daily_bin1712.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) = 8539.76517375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28835       1.0000          .0000       .10000E+07
     2 'Prefactor '    .53955E-05   1.0000          .0000       .10000E+07
     3 'norm      '    9.0863       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28777E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16690E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    4.2707       1.0000          .0000       .10000E+07
     7 'Prefactor '    .37527E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .20910E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .27969E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .87613E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9821       1.0000          .0000       .10000E+07
    12 'Prefactor '    42.669       1.0000          .0000       .10000E+07
    13 'norm      '    .27117E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .59372E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .46558E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    .75101       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8539.708     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      983 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28573        1.0055        .34509E-08    .75200E-02
   2  Prefactor      .0000        1.6687        .75167E-07** at limit **
   3  norm          9.1086        6.8548        .22948E-07    .27182E-02
   4  Prefactor     .16653E-09    5.0982       -.96776E-07** at limit **
   5  Prefactor      .0000        24.372       -.19365E-06** at limit **
   6  Prefactor     4.3220        1.2440       -.52145E-08    .18858E-03
   7  Prefactor      .0000        3.5137        .15143E-06** at limit **
   8  Prefactor     .38858E-09    25.233        .14053E-06** at limit **
   9  norm          .14988E-08    5.7987       -.30641E-06** at limit **
  10  norm           .0000        1.1082        .10941E-06** at limit **
  11  Prefactor     3.9810        3.9313        .42901E-07    .27473E-03
  12  Prefactor     42.673        1.0518        .97985E-09   -.66496E-02
  13  norm          .47523E-06    6.3807        .12707E-06** at limit **
  14  Prefactor     .38303E-08    8.9117       -.82093E-07** at limit **
  15  Prefactor     .41833E-06    7.6318        .89479E-07** at limit **
  16  Normalizat    .75087        .20424       -.40186E-05    .67415E-05
  17  Prefactor     1.2367        .14371        .99665E-06    .31223E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.285727
  Prefactor  = 0
  norm       = 9.1086
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 4.32203
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  norm       = 1.4988e-09
  norm       = 0
  Prefactor  = 3.98103
  Prefactor  = 42.6728
  norm       = 4.75231e-07
  Prefactor  = 3.83027e-09
  Prefactor  = 4.18332e-07
  Normalizat = 0.750869
  Prefactor  = 1.23671
 **********
 **   18 **HESSE 
 **********

 FCN=   8539.708     FROM HESSE     STATUS=OK           257 CALLS     1240 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28573        4.3305        .60767E-02   -1.5697    
   2  Prefactor      .0000        1.6691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.1086        6.9026        .33225E-03   -1.5648    
   4  Prefactor     .16653E-09    5.1855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        24.323        .17265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3220        13.916        .48729E-03   -1.5666    
   7  Prefactor      .0000        3.4930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-09    25.190        .16978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .14988E-08    5.8901        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.0611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9810        3.9725        .50519E-03   -1.5668    
  12  Prefactor     42.673        10.395        .15310E-03   -1.5577    
  13  norm          .47523E-06    13.475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .38303E-08    9.0006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .41833E-06    13.918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .75087        .18540        .75555E-01   -1.0192    
  17  Prefactor     1.2367        .12621        .33818E-01   -.85209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98723e-08
Minuit parameter uncertainties:
  1  2.22471
  2  3.67707e-06
  3  6.90263
  4  5.80468e-05
  5  2.5121e-05
  6  13.9163
  7  1.93773e-06
  8  0.000196471
  9  0.00018833
  10  1.03628e-06
  11  3.97255
  12  10.3949
  13  0.00506102
  14  0.000370219
  15  0.00482594
  16  0.185553
  17  0.126243
Done.

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

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  9.109e+00  6.903e+00  0.000e+00  1.000e+06 ( 1.000e-12)
292        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  4.525e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  6.976e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.237e+00  1.262e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  7.509e-01  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 164.806 -11.572
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.69e-05

TS (Fixed Index): 2.82
Ra Dec: 164.806 -11.572
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98915/likelihoodResults_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.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) = 8538.35180931
delta logL = 1.35581081936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8538.33868274
delta logL = 1.36893738935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2684       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2411       1.0000          .0000       5.0000    
     3 'Normalizat'    .63896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8538.339     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      246 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2641        36.855        .43767E-03    .18747E-01
   2  alpha         3.2419        3.9994        .27773        .21224E-03
   3  Normalizat    .63902        .69196E-01    .81353E-01    .11532E-03
   4  Prefactor     1.2874        .45645E-01    .32833E-01   -.31890E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.26414
  alpha      = 3.24188
  Normalizat = 0.639019
  Prefactor  = 1.28741
 **********
 **   18 **HESSE 
 **********

 FCN=   8538.339     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2641        11.723        .95363E-05   -1.5662    
   2  alpha         3.2419        1.4856        .11180E-01    .30129    
   3  Normalizat    .63902        .22357        .36025E-03   -1.0635    
   4  Prefactor     1.2874        .15490        .18636E-03   -.83682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67893e-10
Minuit parameter uncertainties:
  1  11.7234
  2  1.60352
  3  0.223886
  4  0.154952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98915': 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) = 8538.33868209
delta logL = 1.3689380328

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  5.264e+00  1.172e+01  0.000e+00  1.000e+06 ( 1.000e-12)
292        alpha:  3.242e+00  1.604e+00  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  4.525e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  6.976e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.287e+00  1.550e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  6.390e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 164.806 -11.572
Photon Index (Free Index): 3.24 +/- 1.60
Photon Flux (Free Index): 1.15e-07 +/- 6.07e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/98915/cmap_HighResolution_683078401_683337601_4FGL_J1059.2-1134_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-05', comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='2.11e-05', photon_flux_error='3.37e-08', dlogl='1.37e+00', energy_flux='2.23e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2022-09-16 15:52:59.590843', photon_index_error2='1.60', photon_index2='3.24', ts='2.82', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.32e-05', EG='0.75', time_epoch_completed='1663368779.59', return_code='0', job_id='98915', GAL2='1.29', EG2='0.64', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.07e-08', ts2='5.97', photon_index='2.09' WHERE bin_id='1712' AND source_name='4FGL J1059.2-1134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:52:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 98915: <4FGL_J1059.2-1134_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1059.2-1134_daily_bin1712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:40:15 2022
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:41:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:41:18 2022
Terminated at Fri Sep 16 15:53:00 2022
Results reported at Fri Sep 16 15:53:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.2-1134_daily_bin1712 164.806 -11.572 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1059.2-1134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            765 sec.

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

