/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 22 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1059.2-1134_daily_bin333
RA = 164.806, Dec = -11.572
tmin = 325641601, tmax = 325900801
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='396078', job_status='RUN', time_executed='2021-09-03 01:55:56.534857', time_epoch_executed='1630659356.53' WHERE source_name='4FGL J1059.2-1134' and cadence='daily' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396078/ft1_4FGL_J1059.2-1134_daily_bin333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396078/ft1_4FGL_J1059.2-1134_daily_bin333.fits outfile=/scratch/kocevski/396078/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin333.fits ra=164.806 dec=-11.572 rad=12.0 tmin=325641601.0 tmax=325900801.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 5.45
user 3.82
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.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/396078/ft1_filteredMKT_4FGL_J1059.2-1134_daily_bin333.fits evtable="EVENTS" outfile="/scratch/kocevski/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.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.62
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits" evtable="EVENTS" scfile=/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits sctable="SC_DATA" outfile=/scratch/kocevski/396078/ltcube_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.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/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits
.....................!
real 17.02
user 16.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/396078/ltcube_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.fits outfile=/scratch/kocevski/396078/expmap_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.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/396078/ltcube_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.fits
.....................!
real 192.17
user 186.46
sys 4.72

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/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits scfile=/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits outfile=/scratch/kocevski/396078/cmap_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits scfile=/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits outfile=/scratch/kocevski/396078/cmap_HighResolution_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/396078/Model_4FGL_J1059.2-1134_daily_bin333.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/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits.....................!
real 71.71
user 70.24
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits', '/scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits', expMap='/scratch/kocevski/396078/expmap_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.fits', expCube='/scratch/kocevski/396078/ltcube_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/396078/Model_4FGL_J1059.2-1134_daily_bin333.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  1.000e-04  1.000e+04 ( 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  0.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/396078/ft1_filtered_4FGL_J1059.2-1134_daily_bin333.fits
Spacecraft file(s): /scratch/kocevski/396078/ft2_4FGL_J1059.2-1134_daily_bin333.fits
Exposure map: /scratch/kocevski/396078/expmap_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.fits
Exposure cube: /scratch/kocevski/396078/ltcube_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/396078/Model_4FGL_J1059.2-1134_daily_bin333.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) = 8292.39408113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.7845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84308       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26068E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4794       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24652E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5328       1.0000         .10000E-03   10000.    
    15 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30865E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12055E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .73486       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1040       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8292.332     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1624 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.339        5.8438       -.17899E-08   -.53458E-04
   2  Prefactor     .10000E-03    1.9343        .12069E-07** at limit **
   3  norm          7.7866        4.9549       -.10796E-06   -.29946E-03
   4  Prefactor     9.5035        11.275        .54023E-06    .18924E-03
   5  Prefactor     .10000E-03    13.616        .15580E-07** at limit **
   6  Prefactor     8.2206        11.958       -.23325E-05   -.65903E-03
   7  Prefactor     .10000E-03    5.2125       -.23918E-06** at limit **
   8  Prefactor     .84421        3.1614        .13422E-05   -.41997E-03
   9  Prefactor     .10005E-03    97.989        .84424E-05** at limit **
  10  norm          2.5231        5.8069        .10113E-05    .12173E-03
  11  Prefactor     7.4791        38.641        .27618E-05   -.54160E-04
  12  norm          3.0036        1.0014       -.39402E-07   -.89793E-04
  13  Prefactor     .10000E-03    1.8118       -.41880E-06** at limit **
  14  Prefactor     7.5328        5.2683        .11074E-05   -.77936E-03
  15  norm          .10000E-03    8.1582        .42018E-07** at limit **
  16  Prefactor     .10053E-03    12.665        .26143E-05** at limit **
  17  Prefactor     .10000E-03    111.31       -.26836E-05** at limit **
  18  Normalizat    .73448        .17073        .24577E-06   -.18332E-03
  19  Prefactor     1.1042        .11859       -.34604E-06   -.16866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.339
  Prefactor  = 0.0001
  norm       = 7.7866
  Prefactor  = 9.50347
  Prefactor  = 0.0001
  Prefactor  = 8.22058
  Prefactor  = 0.0001
  Prefactor  = 0.844211
  Prefactor  = 0.000100049
  norm       = 2.52309
  Prefactor  = 7.47913
  norm       = 3.00361
  Prefactor  = 0.000100001
  Prefactor  = 7.53281
  norm       = 0.0001
  Prefactor  = 0.000100533
  Prefactor  = 0.000100003
  Normalizat = 0.734477
  Prefactor  = 1.10418
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.332     FROM HESSE     STATUS=OK           270 CALLS     1894 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.339        5.8462        .11898E-03   -1.5034    
   2  Prefactor     .10000E-03    1.9405        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.7866        4.9638        .14372E-03   -1.5150    
   4  Prefactor     9.5035        11.306        .13001E-03   -1.5091    
   5  Prefactor     .10000E-03    13.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2206        12.667        .13974E-03   -1.5134    
   7  Prefactor     .10000E-03    5.2314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .84421        3.2072        .29724E-03   -1.5524    
   9  Prefactor     .10005E-03    106.93        .21448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5231        5.7006        .25705E-03   -1.5390    
  11  Prefactor     7.4791        39.418        .73323E-03   -1.5161    
  12  norm          3.0036        1.0007        .50153E-04   -1.5361    
  13  Prefactor     .10000E-03    6.2029        .22201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5328        5.5816        .73060E-03   -1.5159    
  15  norm          .10000E-03    8.1669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10053E-03    75.381        .56342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    116.71        .36333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .73448        .19651        .31352E-03   -1.0255    
  19  Prefactor     1.1042        .13754        .18636E-03   -.89333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78114e-09
Minuit parameter uncertainties:
  1  5.84653
  2  7.11217e-08
  3  4.96406
  4  11.3087
  5  2.31533e-07
  6  12.6707
  7  9.1606e-06
  8  3.2078
  9  0.00457304
  10  5.70185
  11  34.3754
  12  1.00069
  13  0.000124514
  14  5.58202
  15  3.09367e-06
  16  0.0126923
  17  0.00123334
  18  0.196701
  19  0.13758
Done.

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

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  7.787e+00  4.964e+00  1.000e-04  1.000e+04 ( 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  0.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.104e+00  1.376e-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.345e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 164.806 -11.572
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.21e-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) = 8292.11043908
delta logL = 0.221847048469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8292.0232175
delta logL = 0.309068631903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0591       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5033       1.0000          .0000       5.0000    
     3 'Normalizat'    .76062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0965       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=   8292.023     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0550        3.6844        .44692E-02   -.12413E-03
   2  alpha         1.5031        .36728        .37295       -.63849E-04
   3  Normalizat    .76050        .16351        .69699E-01    .38768E-04
   4  Prefactor     1.0965        .11737        .37722E-01    .14177E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.055
  alpha      = 1.50312
  Normalizat = 0.760496
  Prefactor  = 1.09653
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.023     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0550        5.6966        .14234E-03   -1.5258    
   2  alpha         1.5031        .66337        .13976E-01   -.41016    
   3  Normalizat    .76050        .19038        .30843E-03   -1.0155    
   4  Prefactor     1.0965        .13662        .18694E-03   -.89578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1225e-12
Minuit parameter uncertainties:
  1  5.6972
  2  0.672989
  3  0.190546
  4  0.136667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396078': 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) = 8292.02321684
delta logL = 0.309069288103

Extracting fit parameters...

4FGL J1059.2-1134
   Spectrum: LogParabola
291         norm:  5.055e+00  5.697e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  1.503e+00  6.730e-01  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  4.525e-02  0.000e+00  0.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.097e+00  1.367e-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.605e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.10
Ra Dec: 164.806 -11.572
Photon Index (Free Index): 1.50 +/- 0.67
Photon Flux (Free Index): 1.64e-08 +/- 2.10e-08
Energy Flux (Free Index): 3.40e-05 +/- 3.96e-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/396078/cmap_HighResolution_325641601_325900801_4FGL_J1059.2-1134_daily_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='3.40e-05', photon_flux_error='2.42e-08', dlogl='3.09e-01', energy_flux='1.90e-05', photon_flux2='1.64e-08', job_status='DONE', time_completed='2021-09-03 02:06:30.956629', photon_index_error2='0.67', photon_index2='1.50', ts='7.50', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='3.96e-05', EG='0.73', time_epoch_completed='1630659990.96', return_code='0', job_id='396078', GAL2='1.10', EG2='0.76', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='2.10e-08', ts2='8.10', photon_index='2.09' WHERE bin_id='333' AND source_name='4FGL J1059.2-1134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 396078: <4FGL_J1059.2-1134_daily_bin333> in cluster <slac> Done

Job <4FGL_J1059.2-1134_daily_bin333> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 01:53:10 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 01:54:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 01:54:10 2021
Terminated at Fri Sep  3 02:06:31 2021
Results reported at Fri Sep  3 02:06:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.2-1134_daily_bin333 164.806 -11.572 325641601 325900801 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 :                                   629.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            801 sec.

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

