/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 154 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1059.5+2057_daily_bin18
RA = 164.878, Dec = 20.9524
tmin = 243993601, tmax = 244252801
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='409005', job_status='RUN', time_executed='2021-09-03 02:33:59.253815', time_epoch_executed='1630661639.25' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/409005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/409005/ft1_4FGL_J1059.5+2057_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/409005/ft1_4FGL_J1059.5+2057_daily_bin18.fits outfile=/scratch/kocevski/409005/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin18.fits ra=164.878 dec=20.9524 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.20
user 1.01
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.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/409005/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.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.46
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/409005/ltcube_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.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/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits
.....................!
real 12.60
user 12.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/409005/ltcube_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.fits outfile=/scratch/kocevski/409005/expmap_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.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/409005/ltcube_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.fits
.....................!
real 157.06
user 152.38
sys 4.22

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits scfile=/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits outfile=/scratch/kocevski/409005/cmap_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.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.878 yref=20.9524 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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits scfile=/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits outfile=/scratch/kocevski/409005/cmap_HighResolution_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.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.878 yref=20.9524 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.53
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/409005/Model_4FGL_J1059.5+2057_daily_bin18.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/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits.....................!
real 44.44
user 43.14
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits', '/scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits', expMap='/scratch/kocevski/409005/expmap_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.fits', expCube='/scratch/kocevski/409005/ltcube_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/409005/Model_4FGL_J1059.5+2057_daily_bin18.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/409005/ft1_filtered_4FGL_J1059.5+2057_daily_bin18.fits
Spacecraft file(s): /scratch/kocevski/409005/ft2_4FGL_J1059.5+2057_daily_bin18.fits
Exposure map: /scratch/kocevski/409005/expmap_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.fits
Exposure cube: /scratch/kocevski/409005/ltcube_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/409005/Model_4FGL_J1059.5+2057_daily_bin18.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) = 5940.23391383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18387E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31292E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.754       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7286       1.0000         .10000E-03   10000.    
    13 'norm      '    .73642       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0684       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49642       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.498       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.058       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65777       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5940.220     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2524 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.577        9.1144         .0000       -.61948E-03
   2  Prefactor     .10036E-03    28.022         .0000    ** at limit **
   3  Prefactor     2.2362        5.8235         .0000        .92930E-03
   4  Prefactor     .10000E-03    1.2625         .0000    ** at limit **
   5  Prefactor     .10000E-03    3.2460         .0000    ** at limit **
   6  Prefactor     .10028E-03    4.3523         .0000    ** at limit **
   7  Prefactor     15.384        10.898         .0000        .27314E-02
   8  Prefactor     .10000E-03    2.4843         .0000    ** at limit **
   9  Prefactor     24.760        14.871         .0000       -.72550E-03
  10  norm          .10000E-03    .45707         .0000    ** at limit **
  11  Prefactor     .10000E-03    .70688         .0000    ** at limit **
  12  Prefactor     6.7245        6.3700         .0000        .80072E-02
  13  norm          .72230        6.5276         .0000        .94996E-03
  14  norm          1.0696        9.0534         .0000        .27506E-01
  15  Prefactor     .54286        9.1096         .0000        .58396E-03
  16  Prefactor     10.499        11.885         .0000       -.11630E-02
  17  Prefactor     59.978        40.035         .0000        .33419E-03
  18  Prefactor     .10000E-03    4.0679         .0000    ** at limit **
  19  Normalizat    .65757        .16692         .0000       -.69039E-04
  20  Prefactor     1.3440        .17942         .0000       -.13224E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5768
  Prefactor  = 0.000100358
  Prefactor  = 2.2362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100277
  Prefactor  = 15.3838
  Prefactor  = 0.0001
  Prefactor  = 24.7601
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72453
  norm       = 0.7223
  norm       = 1.06964
  Prefactor  = 0.542863
  Prefactor  = 10.4992
  Prefactor  = 59.9781
  Prefactor  = 0.0001
  Normalizat = 0.657566
  Prefactor  = 1.34397
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.220     FROM HESSE     STATUS=OK           301 CALLS     2825 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.577        9.1133        .92934E-04   -1.4846    
   2  Prefactor     .10036E-03    31.632        .12303       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2362        5.6814        .27536E-03   -1.5409    
   4  Prefactor     .10000E-03    4.4715        .16019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2955        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10028E-03    82.747        .28822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.384        10.529        .10215E-03   -1.4923    
   8  Prefactor     .10000E-03    2.4865        .11864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.760        14.643        .80512E-04   -1.4712    
  10  norm          .10000E-03    .47267        .10160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .71420        .63266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7245        6.3417        .15469E-03   -1.5189    
  13  norm          .72230        15.037        .37494E-02   -1.5538    
  14  norm          1.0696        9.1592        .22343E-02   -1.5501    
  15  Prefactor     .54286        44.070        .42759E-02   -1.5561    
  16  Prefactor     10.499        11.884        .12366E-03   -1.5060    
  17  Prefactor     59.978        39.851        .51773E-04   -1.4158    
  18  Prefactor     .10000E-03    4.0724        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .65757        .19367        .27463E-03   -1.0559    
  20  Prefactor     1.3440        .21266        .22279E-03   -.82009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43015e-08
Minuit parameter uncertainties:
  1  9.11396
  2  0.00673021
  3  5.68273
  4  1.07382e-05
  5  6.44926e-06
  6  0.00959534
  7  10.5298
  8  1.48962e-06
  9  14.6449
  10  1.41938e-06
  11  1.72247e-06
  12  6.34234
  13  6.59263
  14  6.26107
  15  9.78895
  16  11.8864
  17  39.8684
  18  2.1219e-06
  19  0.193866
  20  0.212798
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.476e+01  1.464e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.344e+00  2.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  6.576e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.14e-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) = 5940.15853191
delta logL = 0.0615195295386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5940.14527806
delta logL = 0.0747733741255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.442       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2307       1.0000          .0000       10.000    
     3 'Normalizat'    .66670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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.

 FCN=   5940.145     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      274 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.443        20.784        .73838E-04   -.46523E-03
   2  Index         2.2306        .47971        .57441E-02   -.22950E-03
   3  Normalizat    .66668        .19039        .27291E-03    .15205E-03
   4  Prefactor     1.3374        .21222        .22325E-03    .21826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4432
  Index      = 2.23061
  Normalizat = 0.666682
  Prefactor  = 1.33742
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.145     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.443        20.289        .14768E-04   -1.4622    
   2  Index         2.2306        .46805        .22976E-03   -.58701    
   3  Normalizat    .66668        .19048        .10916E-04   -1.0522    
   4  Prefactor     1.3374        .21235        .44651E-04   -.82201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46499e-10
Minuit parameter uncertainties:
  1  20.2935
  2  0.469044
  3  0.190668
  4  0.212486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/409005': 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) = 5940.14527804
delta logL = 0.07477340063

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.944e+01  2.029e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.231e+00  4.690e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.337e+00  2.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  6.667e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.32
Ra Dec: 164.878 20.952
Photon Index (Free Index): 2.23 +/- 0.47
Photon Flux (Free Index): 5.26e-08 +/- 3.75e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.63e-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/409005/cmap_HighResolution_243993601_244252801_4FGL_J1059.5+2057_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='2.24e-05', photon_flux_error='3.55e-08', dlogl='7.48e-02', energy_flux='1.93e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-03 02:42:05.695288', photon_index_error2='0.47', photon_index2='2.23', ts='6.16', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.66', time_epoch_completed='1630662125.7', return_code='0', job_id='409005', GAL2='1.34', EG2='0.67', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.75e-08', ts2='6.32', photon_index='2.41' WHERE bin_id='18' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:42:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 409005: <4FGL_J1059.5+2057_daily_bin18> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin18> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 02:26:22 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:31:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 02:31:15 2021
Terminated at Fri Sep  3 02:42:06 2021
Results reported at Fri Sep  3 02:42:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin18 164.878 20.9524 243993601 244252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1059.5+2057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   482.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            944 sec.

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

