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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin87
RA = 149.176, Dec = 25.2817
tmin = 261878401, tmax = 262137601
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='578136', job_status='RUN', time_executed='2021-09-01 05:58:13.576565', time_epoch_executed='1630501093.58' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578136/ft1_4FGL_J0956.7+2516_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578136/ft1_4FGL_J0956.7+2516_daily_bin87.fits outfile=/scratch/kocevski/578136/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin87.fits ra=149.176 dec=25.2817 rad=12.0 tmin=261878401.0 tmax=262137601.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.39
user 1.21
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.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/578136/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/578136/ltcube_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.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/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits
.....................!
real 12.38
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/578136/ltcube_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.fits outfile=/scratch/kocevski/578136/expmap_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.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/578136/ltcube_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.fits
.....................!
real 190.25
user 185.51
sys 4.32

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

Setting source of interest to:
4FGL J0956.7+2516 @ 149.176 25.2817

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits scfile=/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits outfile=/scratch/kocevski/578136/cmap_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.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=149.176 yref=25.2817 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.62
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits scfile=/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits outfile=/scratch/kocevski/578136/cmap_HighResolution_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.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=149.176 yref=25.2817 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.66
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/578136/Model_4FGL_J0956.7+2516_daily_bin87.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/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits.....................!
real 72.38
user 70.28
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits', '/scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits', expMap='/scratch/kocevski/578136/expmap_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.fits', expCube='/scratch/kocevski/578136/ltcube_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/578136/Model_4FGL_J0956.7+2516_daily_bin87.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0956.7+2516'

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  4.112e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/578136/ft1_filtered_4FGL_J0956.7+2516_daily_bin87.fits
Spacecraft file(s): /scratch/kocevski/578136/ft2_4FGL_J0956.7+2516_daily_bin87.fits
Exposure map: /scratch/kocevski/578136/expmap_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.fits
Exposure cube: /scratch/kocevski/578136/ltcube_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/578136/Model_4FGL_J0956.7+2516_daily_bin87.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) = 8654.57096601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    23.214       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.990       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.197       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9850       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8654.515     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1790 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.690       -.92361E-06** at limit **
   2  norm          23.132        32.299       -.93893E-06   -.26779E-04
   3  norm          1.7319        1.0525        .27548E-07    .51529E-04
   4  Prefactor     .10000E-03    10.274        .91674E-06** at limit **
   5  Prefactor     .10000E-03    1.3412        .38794E-07** at limit **
   6  Prefactor     12.696        21.628        .32943E-06   -.13124E-03
   7  Prefactor     .10000E-03    30.151        .12327E-05** at limit **
   8  Prefactor     13.988        23.089       -.11203E-05   -.41394E-04
   9  Prefactor     21.703        7.4568       -.73904E-07   -.81835E-04
  10  Prefactor     5.4382        5.4594        .21145E-05    .39825E-03
  11  Prefactor     .10000E-03    1.1175        .62705E-07** at limit **
  12  norm          18.196        8.0613       -.48124E-07   -.38016E-04
  13  Prefactor     .10000E-03    1.8925        .16603E-06** at limit **
  14  Prefactor     .10000E-03    15.762        .47567E-05** at limit **
  15  Prefactor     .54457        3.6264        .31386E-06   -.67007E-03
  16  Prefactor     .10000E-03    16.342       -.57307E-05** at limit **
  17  Prefactor     5.4471        4.3819        .81606E-06   -.20729E-02
  18  Prefactor     2.9849        1.9711       -.35666E-07   -.83662E-04
  19  Normalizat    1.0492        .14782       -.45678E-06   -.21659E-04
  20  Prefactor     1.0556        .14844        .16243E-06   -.53910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 23.1322
  norm       = 1.7319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6959
  Prefactor  = 0.0001
  Prefactor  = 13.9876
  Prefactor  = 21.7033
  Prefactor  = 5.43819
  Prefactor  = 0.0001
  norm       = 18.1961
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.544566
  Prefactor  = 0.000100001
  Prefactor  = 5.44715
  Prefactor  = 2.98492
  Normalizat = 1.04923
  Prefactor  = 1.05557
 **********
 **   18 **HESSE 
 **********

 FCN=   8654.515     FROM HESSE     STATUS=OK           295 CALLS     2085 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          23.132        32.354        .83137E-04   -1.4746    
   3  norm          1.7319        1.0525        .31897E-04   -1.5445    
   4  Prefactor     .10000E-03    10.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3736        .21026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.696        21.842        .56203E-03   -1.4995    
   7  Prefactor     .10000E-03    30.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.988        23.144        .10709E-03   -1.4960    
   9  Prefactor     21.703        7.4539        .85976E-04   -1.4776    
  10  Prefactor     5.4382        5.4934        .17230E-03   -1.5242    
  11  Prefactor     .10000E-03    1.9010        .18844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.196        8.0622        .93891E-04   -1.4855    
  13  Prefactor     .10000E-03    1.9369        .24877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .54457        4.2649        .36222E-03   -1.5560    
  16  Prefactor     .10000E-03    16.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4471        6.6458        .86081E-03   -1.5241    
  18  Prefactor     2.9849        1.9770        .10152E-03   -1.5362    
  19  Normalizat    1.0492        .17389        .24290E-03   -.91399    
  20  Prefactor     1.0556        .17357        .25101E-03   -.90899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63133e-09
Minuit parameter uncertainties:
  1  2.78318e-05
  2  32.3786
  3  1.05254
  4  3.32667e-05
  5  5.68144e-07
  6  21.8554
  7  7.8684e-05
  8  23.1587
  9  7.45423
  10  5.49393
  11  1.2859e-05
  12  8.06272
  13  2.72741e-06
  14  0.000200049
  15  3.04799
  16  0.000247373
  17  6.64671
  18  1.97707
  19  0.173981
  20  0.173663
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  2.170e+01  7.454e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.056e+00  1.737e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.049e+00  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.04
Ra Dec: 149.176 25.282
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 4.31e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.19e-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) = 8654.35577624
delta logL = 0.15877261087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8654.35463378
delta logL = 0.159915071652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.689       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3662       1.0000          .0000       10.000    
     3 'Normalizat'    1.0665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   8654.355     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      267 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.689        8.6807        .82300E-04    .10269E-02
   2  Index         2.3662        .31340        .56090E-02    .23940E-03
   3  Normalizat    1.0664        .16989        .24127E-03   -.50136E-04
   4  Prefactor     1.0427        .17372        .25222E-03   -.63916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6889
  Index      = 2.36624
  Normalizat = 1.06642
  Prefactor  = 1.04271
 **********
 **   18 **HESSE 
 **********

 FCN=   8654.355     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.689        8.6097        .16460E-04   -1.4734    
   2  Index         2.3662        .31066        .22436E-03   -.55477    
   3  Normalizat    1.0664        .17002        .96507E-05   -.90837    
   4  Prefactor     1.0427        .17383        .10089E-04   -.91319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54554e-10
Minuit parameter uncertainties:
  1  8.61013
  2  0.31094
  3  0.17011
  4  0.173928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578136': 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) = 8654.35463345
delta logL = 0.159915398282

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  2.369e+01  8.610e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.366e+00  3.109e-01  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  5.839e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.043e+00  1.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.066e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.35
Ra Dec: 149.176 25.282
Photon Index (Free Index): 2.37 +/- 0.31
Photon Flux (Free Index): 1.13e-07 +/- 4.63e-08
Energy Flux (Free Index): 3.87e-05 +/- 1.59e-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/578136/cmap_HighResolution_261878401_262137601_4FGL_J0956.7+2516_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='3.87e-05', photon_flux_error='4.31e-08', dlogl='1.60e-01', energy_flux='3.47e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-01 06:08:06.216380', photon_index_error2='0.31', photon_index2='2.37', ts='19.04', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.05', time_epoch_completed='1630501686.22', return_code='0', job_id='578136', GAL2='1.04', EG2='1.07', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.63e-08', ts2='19.35', photon_index='2.55' WHERE bin_id='87' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:08:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 578136: <4FGL_J0956.7+2516_daily_bin87> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin87> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 05:55:43 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 05:55:44 2021
Terminated at Wed Sep  1 06:08:07 2021
Results reported at Wed Sep  1 06:08:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin87 149.176 25.2817 261878401 262137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0956.7+2516 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   588.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

