/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 7 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.5+2057_daily_bin395
RA = 164.878, Dec = 20.9524
tmin = 341712001, tmax = 341971201
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='412000', job_status='RUN', time_executed='2021-09-03 02:37:16.686615', time_epoch_executed='1630661836.69' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412000/ft1_4FGL_J1059.5+2057_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412000/ft1_4FGL_J1059.5+2057_daily_bin395.fits outfile=/scratch/kocevski/412000/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin395.fits ra=164.878 dec=20.9524 rad=12.0 tmin=341712001.0 tmax=341971201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.49
user 3.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.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/412000/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/412000/ft1_filtered_4FGL_J1059.5+2057_daily_bin395.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412000/ft1_filtered_4FGL_J1059.5+2057_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/412000/ltcube_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.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/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits
.....................!
real 13.70
user 13.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412000/ft1_filtered_4FGL_J1059.5+2057_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/412000/ltcube_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.fits outfile=/scratch/kocevski/412000/expmap_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.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/412000/ltcube_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.fits
.....................!
real 192.42
user 187.63
sys 4.36

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/412000/ft1_filtered_4FGL_J1059.5+2057_daily_bin395.fits scfile=/scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits outfile=/scratch/kocevski/412000/cmap_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.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.92
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412000/ft1_filtered_4FGL_J1059.5+2057_daily_bin395.fits scfile=/scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits outfile=/scratch/kocevski/412000/cmap_HighResolution_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.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.83
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412000/ft1_filtered_4FGL_J1059.5+2057_daily_bin395.fits', '/scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits', expMap='/scratch/kocevski/412000/expmap_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.fits', expCube='/scratch/kocevski/412000/ltcube_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412000/Model_4FGL_J1059.5+2057_daily_bin395.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/412000/ft1_filtered_4FGL_J1059.5+2057_daily_bin395.fits
Spacecraft file(s): /scratch/kocevski/412000/ft2_4FGL_J1059.5+2057_daily_bin395.fits
Exposure map: /scratch/kocevski/412000/expmap_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.fits
Exposure cube: /scratch/kocevski/412000/ltcube_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412000/Model_4FGL_J1059.5+2057_daily_bin395.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) = 4896.52224661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.780       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3913       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.644       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0458       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4552       1.0000         .10000E-03   10000.    
    13 'norm      '    8.6364       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47217E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63781       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.

 FCN=   4896.520     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2016 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8904        6.6633        .51839E-07   -.11468E-03
   2  Prefactor     59.780        41.913        .41624E-06    .88343E-04
   3  Prefactor     7.3924        6.2204        .17456E-06   -.49660E-03
   4  Prefactor     .61486        2.1544       -.26908E-06   -.33776E-03
   5  Prefactor     .10000E-03    5.6262       -.27411E-06** at limit **
   6  Prefactor     9.6376        8.7144        .68665E-07   -.33060E-03
   7  Prefactor     21.645        12.536        .32209E-06    .30834E-03
   8  Prefactor     .10000E-03    7.7935       -.19075E-05** at limit **
   9  Prefactor     .10000E-03    5.4903        .98850E-06** at limit **
  10  norm          3.0166        1.5281       -.23526E-07    .10457E-03
  11  Prefactor     3.0458        2.5717        .10242E-08    .14178E-03
  12  Prefactor     4.4545        4.5592        .74478E-07    .28852E-03
  13  norm          8.6366        10.247        .47217E-06   -.27775E-03
  14  norm          .10000E-03    3.8491        .32146E-06** at limit **
  15  Prefactor     .10004E-03    11.720       -.36091E-05** at limit **
  16  Prefactor     .10000E-03    10.712        .23608E-05** at limit **
  17  Prefactor     25.573        33.636       -.22467E-05   -.16567E-03
  18  Prefactor     .10000E-03    4.7050       -.39236E-06** at limit **
  19  Normalizat    1.0508        .16872        .95932E-06    .41609E-03
  20  Prefactor     .63786        .17492       -.58135E-06    .27306E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.89041
  Prefactor  = 59.7803
  Prefactor  = 7.39241
  Prefactor  = 0.614859
  Prefactor  = 0.0001
  Prefactor  = 9.63765
  Prefactor  = 21.6448
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.01656
  Prefactor  = 3.04584
  Prefactor  = 4.45449
  norm       = 8.63662
  norm       = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.000100002
  Prefactor  = 25.5731
  Prefactor  = 0.0001
  Normalizat = 1.05084
  Prefactor  = 0.637859
 **********
 **   18 **HESSE 
 **********

 FCN=   4896.520     FROM HESSE     STATUS=OK           291 CALLS     2307 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8904        6.7319        .76422E-03   -1.5183    
   2  Prefactor     59.780        41.911        .51892E-04   -1.4160    
   3  Prefactor     7.3924        6.8659        .73762E-03   -1.5164    
   4  Prefactor     .61486        2.1330        .17556E-03   -1.5551    
   5  Prefactor     .10000E-03    5.8098        .32427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6376        9.7329        .64543E-03   -1.5087    
   7  Prefactor     21.645        12.795        .86095E-04   -1.4777    
   8  Prefactor     .10000E-03    8.1329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5476        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0166        1.5262        .58557E-04   -1.5361    
  11  Prefactor     3.0458        2.5744        .98771E-04   -1.5359    
  12  Prefactor     4.4545        4.5554        .14673E-03   -1.5286    
  13  norm          8.6366        11.810        .68200E-03   -1.5120    
  14  norm          .10000E-03    3.8676        .13412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    19.871        .32226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.573        34.101        .79213E-04   -1.4696    
  18  Prefactor     .10000E-03    4.7333        .14842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0508        .20053        .20818E-03   -.91346    
  20  Prefactor     .63786        .20098        .27568E-03   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8157e-09
Minuit parameter uncertainties:
  1  6.73261
  2  41.9321
  3  6.86659
  4  2.13331
  5  3.25427e-05
  6  9.73452
  7  12.7964
  8  0.000234278
  9  9.73155e-05
  10  1.5262
  11  2.57447
  12  4.55572
  13  11.8131
  14  2.52779e-05
  15  0.00187357
  16  0.000329978
  17  34.1272
  18  3.6e-05
  19  0.20068
  20  0.201208
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  9.732e-05  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:  6.379e-01  2.012e-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:  1.051e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412000/likelihoodResults_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.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) = 4896.52123627
delta logL = -0.000857397611071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4896.52037887
delta logL = 3.14412318403e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4100       1.0000          .0000       10.000    
     3 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63786       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.

 FCN=   4896.520     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    804.21        .90712E-02** at limit **
   2  Index         2.4052        5.8050        .50000        .74897E-05
   3  Normalizat    1.0508        .64852E-01    .40500E-01   -.27086E-03
   4  Prefactor     .63786        .68526E-01    .62315E-01   -.14159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40518
  Normalizat = 1.05084
  Prefactor  = 0.63786
 **********
 **   18 **HESSE 
 **********

 FCN=   4896.520     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3955        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4052        6.1501        .50000       -.54564    
   3  Normalizat    1.0508        .18705        .20818E-03   -.91346    
   4  Prefactor     .63786        .19791        .27568E-03   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10258e-10
Minuit parameter uncertainties:
  1  4.01209e-05
  2  5.2589
  3  0.187167
  4  0.198127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412000': 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) = 4896.52037886
delta logL = 1.73022272065e-08

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  4.012e-05  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.405e+00  5.259e+00  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:  6.379e-01  1.981e-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:  1.051e+00  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.878 20.952

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/412000/cmap_HighResolution_341712001_341971201_4FGL_J1059.5+2057_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-03 02:46:55.353145', job_id='412000', GAL2='0.64', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630662415.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='395' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 412000: <4FGL_J1059.5+2057_daily_bin395> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin395> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 02:36:51 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:37:01 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:37:01 2021
Terminated at Fri Sep  3 02:46:57 2021
Results reported at Fri Sep  3 02:46:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin395 164.878 20.9524 341712001 341971201 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 :                                   554.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            606 sec.

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

