/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 6 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 = 7460
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0956.7+2516_daily_bin814
RA = 149.176, Dec = 25.2817
tmin = 450316801, tmax = 450576001
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='583014', job_status='RUN', time_executed='2021-09-01 06:11:14.200105', time_epoch_executed='1630501874.2' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583014/ft1_4FGL_J0956.7+2516_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583014/ft1_4FGL_J0956.7+2516_daily_bin814.fits outfile=/scratch/kocevski/583014/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin814.fits ra=149.176 dec=25.2817 rad=12.0 tmin=450316801.0 tmax=450576001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.11
user 3.73
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.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/583014/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin814.fits evtable="EVENTS" outfile="/scratch/kocevski/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.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.61
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/583014/ltcube_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.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/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits
.....................!
real 12.12
user 11.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/583014/ltcube_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.fits outfile=/scratch/kocevski/583014/expmap_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.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/583014/ltcube_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.fits
.....................!
real 191.21
user 185.60
sys 4.04

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/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits scfile=/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits outfile=/scratch/kocevski/583014/cmap_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits scfile=/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits outfile=/scratch/kocevski/583014/cmap_HighResolution_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583014/Model_4FGL_J0956.7+2516_daily_bin814.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/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits.....................!
real 56.87
user 51.56
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits', '/scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits', expMap='/scratch/kocevski/583014/expmap_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.fits', expCube='/scratch/kocevski/583014/ltcube_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/583014/Model_4FGL_J0956.7+2516_daily_bin814.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/583014/ft1_filtered_4FGL_J0956.7+2516_daily_bin814.fits
Spacecraft file(s): /scratch/kocevski/583014/ft2_4FGL_J0956.7+2516_daily_bin814.fits
Exposure map: /scratch/kocevski/583014/expmap_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.fits
Exposure cube: /scratch/kocevski/583014/ltcube_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/583014/Model_4FGL_J0956.7+2516_daily_bin814.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) = 5403.71712984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9059       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.155       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43497E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.546       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5160       1.0000         .10000E-03   10000.    
    12 'norm      '    17.344       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6706       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2943       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.9001       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .14730       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5403.710     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1697 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    13.399       -.28613E-05** at limit **
   2  norm          .10049E-03    8.4301        .11531E-04** at limit **
   3  norm          1.9053        1.4736       -.65114E-07   -.33493E-03
   4  Prefactor     35.160        2.2446        .28343E-05    .92462E-03
   5  Prefactor     .10241E-03    3.7784       -.17930E-04** at limit **
   6  Prefactor     15.490        21.086       -.42679E-04   -.97918E-02
   7  Prefactor     21.688        42.843       -.81740E-04    .66907E-02
   8  Prefactor     .10006E-03    34.700        .45920E-04** at limit **
   9  Prefactor     .10000E-03    6.4581        .16471E-05** at limit **
  10  Prefactor     .10000E-03    4.6794       -.48190E-06** at limit **
  11  Prefactor     1.5164        1.6665       -.15010E-06    .32923E-03
  12  norm          17.347        1.0669       -.11133E-06    .11619E-02
  13  Prefactor     .10000E-03    1.1906        .27550E-05** at limit **
  14  Prefactor     .10010E-03    29.454       -.42652E-04** at limit **
  15  Prefactor     .10000E-03    1.7349        .81910E-06** at limit **
  16  Prefactor     .10025E-03    8.9395        .38633E-05** at limit **
  17  Prefactor     4.6723        6.8574       -.25953E-04   -.34112E-02
  18  Prefactor     1.2947        2.5837        .69058E-06    .40653E-04
  19  Normalizat    1.9004        .20989        .12268E-04   -.34976E-04
  20  Prefactor     .14688        .18819        .10913E-05    .40504E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 0.000100494
  norm       = 1.9053
  Prefactor  = 35.16
  Prefactor  = 0.000102405
  Prefactor  = 15.4903
  Prefactor  = 21.6883
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51641
  norm       = 17.3472
  Prefactor  = 0.0001
  Prefactor  = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 0.00010025
  Prefactor  = 4.6723
  Prefactor  = 1.29466
  Normalizat = 1.90044
  Prefactor  = 0.146877
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.710     FROM HESSE     STATUS=OK           339 CALLS     2036 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    13.430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10049E-03    15.988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9053        1.4806        .75298E-02   -1.5432    
   4  Prefactor     35.160        41.612        .16897E-02   -1.4521    
   5  Prefactor     .10241E-03    2.3051        .74724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.490        30.575        .25395E-02   -1.4921    
   7  Prefactor     21.688        62.650        .21450E-02   -1.4776    
   8  Prefactor     .10006E-03    36.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3699        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5164        1.6723        .86796E-02   -1.5462    
  12  norm          17.347        9.6582        .24043E-02   -1.4875    
  13  Prefactor     .10000E-03    1.1863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10010E-03    31.130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10025E-03    16.399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6723        7.0595        .46554E-02   -1.5276    
  18  Prefactor     1.2947        2.6397        .97231E-02   -1.5480    
  19  Normalizat    1.9004        .28176        .42832E-01   -.67070    
  20  Prefactor     .14688        .25903        .12697       -1.3278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43515e-06
Minuit parameter uncertainties:
  1  0.000737965
  2  0.00562439
  3  1.48066
  4  41.6461
  5  0.00470958
  6  30.6062
  7  62.8405
  8  0.0029777
  9  2.70272e-05
  10  3.58177e-05
  11  1.67238
  12  9.65903
  13  1.05241e-05
  14  0.00346079
  15  2.33931e-05
  16  0.00405303
  17  7.06079
  18  2.63996
  19  0.282002
  20  0.261078
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  2.703e-05  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.469e-01  2.611e-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.900e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.176 25.282
Photon Flux Upper Limit: 9.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/583014/likelihoodResults_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.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) = 5403.71108351
delta logL = -0.000737224454497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5403.71034641
delta logL = -1.21503944683e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5759       1.0000          .0000       10.000    
     3 'Normalizat'    1.9005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .14682       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5403.499     FROM MIGRAD    STATUS=FAILED       244 CALLS      402 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91814E-02    .45525E-03** at limit **
   2  Index         9.7769        5.0010        .93108E-01    .45830E-03
   3  Normalizat    1.8659        .55794E-01    .18929E-03    .23917E-03
   4  Prefactor     .16905        .50586E-01    .55770E-02    .10216E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5403.499     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      549 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91814E-02    .97214E-05** at limit **
   2  Index         9.7769        5.0010        .33782E-02    .45830E-03
   3  Normalizat    1.8659        .55794E-01    .22487E-06    .23917E-03
   4  Prefactor     .16905        .50586E-01    .53940E-05    .10216E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5403.499     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      591 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .41395E-01    .22484E-03** at limit **
   2  Index         9.7769        8.2689        .18622E-01    .12228E-05
   3  Normalizat    1.8659        .85633E-01    .37858E-04    .20108E-03
   4  Prefactor     .16905        .77808E-01    .22308E-03    .81692E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.77692
  Normalizat = 1.86589
  Prefactor  = 0.169052
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.499     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      626 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .24992E-01    .28221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7769        6.8283        .74487E-03    1.8706    
   3  Normalizat    1.8659        .73020E-01    .75717E-05   -.67956    
   4  Prefactor     .16905        .66484E-01    .89232E-05   -1.3100    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.61822e-11
Minuit parameter uncertainties:
  1  1.79366e-07
  2  11.7082
  3  0.0730245
  4  0.0665132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583014': 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): 102
logL (Free Index) = 5403.49877792
delta logL = 0.211568366775

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  1.794e-07  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  9.777e+00  1.171e+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.691e-01  6.651e-02  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.866e+00  7.302e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.176 25.282

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/583014/cmap_HighResolution_450316801_450576001_4FGL_J0956.7+2516_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2021-09-01 06:20:38.326642', job_id='583014', GAL2='0.17', fit_tolerance='1e-08', EG2='1.87', EG='1.90', time_epoch_completed='1630502438.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.15', dlogl='2.12e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='814' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:20:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 583014: <4FGL_J0956.7+2516_daily_bin814> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin814> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 06:10:57 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:10:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 06:10:59 2021
Terminated at Wed Sep  1 06:20:39 2021
Results reported at Wed Sep  1 06:20:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin814 149.176 25.2817 450316801 450576001 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 :                                   549.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            582 sec.

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

