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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin2
RA = 149.176, Dec = 25.2817
tmin = 239846401, tmax = 240105601
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='578008', job_status='RUN', time_executed='2021-09-01 05:59:05.666911', time_epoch_executed='1630501145.67' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578008/ft1_4FGL_J0956.7+2516_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578008/ft2_4FGL_J0956.7+2516_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578008/ft1_4FGL_J0956.7+2516_daily_bin2.fits outfile=/scratch/kocevski/578008/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin2.fits ra=149.176 dec=25.2817 rad=12.0 tmin=239846401.0 tmax=240105601.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.43
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/578008/ft2_4FGL_J0956.7+2516_daily_bin2.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/578008/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/578008/ft1_filtered_4FGL_J0956.7+2516_daily_bin2.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578008/ft1_filtered_4FGL_J0956.7+2516_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/578008/ft2_4FGL_J0956.7+2516_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/578008/ltcube_239846401_240105601_4FGL_J0956.7+2516_daily_bin2.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/578008/ft2_4FGL_J0956.7+2516_daily_bin2.fits
.....................!
real 12.71
user 12.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578008/ft1_filtered_4FGL_J0956.7+2516_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/578008/ft2_4FGL_J0956.7+2516_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/578008/ltcube_239846401_240105601_4FGL_J0956.7+2516_daily_bin2.fits outfile=/scratch/kocevski/578008/expmap_239846401_240105601_4FGL_J0956.7+2516_daily_bin2.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/578008/ltcube_239846401_240105601_4FGL_J0956.7+2516_daily_bin2.fits
.....................!
real 192.04
user 186.45
sys 4.34

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/578008/ft1_filtered_4FGL_J0956.7+2516_daily_bin2.fits scfile=/scratch/kocevski/578008/ft2_4FGL_J0956.7+2516_daily_bin2.fits outfile=/scratch/kocevski/578008/cmap_239846401_240105601_4FGL_J0956.7+2516_daily_bin2.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.57
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2761       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3266       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.743       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    24.196       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16589E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.798       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5105       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99061       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2133       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=   6094.593     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2123 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2825        18.662        .67176E-05   -.32149E-04
   2  norm          6.3281        27.787        .33429E-05   -.25317E-04
   3  norm          1.7088        1.3497        .82089E-08   -.22088E-04
   4  Prefactor     .10000E-03    22.186        .19500E-05** at limit **
   5  Prefactor     10.552        4.2691       -.81883E-07   -.11857E-03
   6  Prefactor     15.740        16.633       -.15167E-05   -.70167E-05
   7  Prefactor     8.4499        141.44        .14411E-03    .13931E-04
   8  Prefactor     48.207        35.467       -.11965E-04   -.36097E-04
   9  Prefactor     .10000E-03    3.8855       -.10346E-05** at limit **
  10  Prefactor     .10000E-03    3.9555        .13824E-06** at limit **
  11  Prefactor     .10000E-03    1.6066        .20683E-06** at limit **
  12  norm          24.195        9.4059        .75545E-07    .49081E-04
  13  Prefactor     .10000E-03    2.2853        .47422E-06** at limit **
  14  Prefactor     36.795        45.206       -.41037E-05   -.95349E-05
  15  Prefactor     1.5122        4.6118       -.55768E-06   -.10387E-02
  16  Prefactor     .10000E-03    17.722       -.15376E-05** at limit **
  17  Prefactor     .10000E-03    2.3844       -.42794E-08** at limit **
  18  Prefactor     .10000E-03    .81980        .37299E-07** at limit **
  19  Normalizat    .99059        .17965       -.64789E-06   -.18759E-03
  20  Prefactor     1.2132        .18638       -.26596E-05    .29561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28249
  norm       = 6.32809
  norm       = 1.70883
  Prefactor  = 0.0001
  Prefactor  = 10.5521
  Prefactor  = 15.7401
  Prefactor  = 8.44991
  Prefactor  = 48.2065
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.1954
  Prefactor  = 0.000100001
  Prefactor  = 36.795
  Prefactor  = 1.51224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.990593
  Prefactor  = 1.21324
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.593     FROM HESSE     STATUS=OK           297 CALLS     2420 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2825        18.649        .13936E-03   -1.5132    
   2  norm          6.3281        27.919        .15958E-03   -1.5205    
   3  norm          1.7088        1.3477        .78191E-04   -1.5447    
   4  Prefactor     .10000E-03    22.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.552        4.2666        .97713E-04   -1.5058    
   6  Prefactor     15.740        16.630        .10094E-03   -1.4914    
   7  Prefactor     8.4499        140.07        .13828E-03   -1.5127    
   8  Prefactor     48.207        35.476        .57747E-04   -1.4318    
   9  Prefactor     .10000E-03    9.1593        .29613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9696        .15161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5329        .19019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.195        9.3942        .81435E-04   -1.4724    
  13  Prefactor     .10000E-03    6.7522        .21224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.795        45.197        .66068E-04   -1.4494    
  15  Prefactor     1.5122        4.3148        .26291E-03   -1.5462    
  16  Prefactor     .10000E-03    17.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3946        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .83350        .69007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99059        .20962        .25288E-03   -.93346    
  20  Prefactor     1.2132        .22045        .24607E-03   -.85925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0506e-09
Minuit parameter uncertainties:
  1  18.6617
  2  26.6044
  3  1.34771
  4  8.46928e-06
  5  4.26676
  6  16.6346
  7  68.9959
  8  35.4911
  9  0.000386446
  10  7.7067e-06
  11  4.62775e-05
  12  9.39482
  13  0.000144006
  14  45.239
  15  4.3157
  16  1.3263e-05
  17  6.94933e-06
  18  3.12233e-06
  19  0.209798
  20  0.220619
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  3.864e-04  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.213e+00  2.206e-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:  9.906e-01  2.098e-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: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578008/likelihoodResults_239846401_240105601_4FGL_J0956.7+2516_daily_bin2.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) = 6094.59342921
delta logL = -0.000518588378327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6094.59291245
delta logL = -1.82456824405e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13122E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4815       1.0000          .0000       10.000    
     3 'Normalizat'    .99092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2129       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=   6094.593     FROM MIGRAD    STATUS=FAILED       114 CALLS      284 TOTAL
                     EDM=   .58E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19941E-03    7428.7        .31276E-02** at limit **
   2  Index         1.7083        .63682        .50000       -.19411E-04
   3  Normalizat    .99060        .16137        .25288E-03    .57589E-04
   4  Prefactor     1.2132        .18083        .24607E-03    .11742E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6094.590     FROM SIMPLEX   STATUS=PROGRESS     146 CALLS      430 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31259        7428.7        .62474E-03   -1.5596    
   2  Index         1.7085        .63682        .25958E-05   -.71856    
   3  Normalizat    .99061        .16137        .15743E-06   -.93346    
   4  Prefactor     1.2132        .18083        .68729E-07   -.85925    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6094.590     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      485 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36957        6211.4        .12510E-02    .40403E-04
   2  Index         1.7838        9.0832        .50000       -.19706E-04
   3  Normalizat    .99148        .79882E-01    .10115E-04    .12363E-04
   4  Prefactor     1.2113        .12156        .49213E-04    .51468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.36957
  Index      = 1.78379
  Normalizat = 0.991482
  Prefactor  = 1.21126
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.590     FROM HESSE     STATUS=OK            29 CALLS      514 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36957        16.439        .50041E-04   -1.5586    
   2  Index         1.7838        2.3440        .22664E-01   -.69873    
   3  Normalizat    .99148        .20265        .20231E-05   -.93316    
   4  Prefactor     1.2113        .21775        .98427E-05   -.85985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85204e-09
Minuit parameter uncertainties:
  1  4.9305
  2  2.52262
  3  0.202807
  4  0.217912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578008': 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) = 6094.58996781
delta logL = 0.00294281247807

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  3.696e-01  4.931e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  1.784e+00  2.523e+00  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.211e+00  2.179e-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:  9.915e-01  2.028e-01  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/578008/cmap_HighResolution_239846401_240105601_4FGL_J0956.7+2516_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-09-01 06:09:10.841676', job_id='578008', GAL2='1.21', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630501750.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.94e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='2' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:09:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 578008: <4FGL_J0956.7+2516_daily_bin2> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin2> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 05:55:33 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 05:55:35 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:35 2021
Terminated at Wed Sep  1 06:09:11 2021
Results reported at Wed Sep  1 06:09:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin2 149.176 25.2817 239846401 240105601 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 :                                   597.00 sec.
    Max Memory :                                 1212 MB
    Average Memory :                             256.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

