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


Performing analysis on: 4FGL_J0956.7+2516_daily_bin86
RA = 149.176, Dec = 25.2817
tmin = 261619201, tmax = 261878401
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='578134', job_status='RUN', time_executed='2021-09-01 05:59:31.081037', time_epoch_executed='1630501171.08' WHERE source_name='4FGL J0956.7+2516' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578134/ft1_4FGL_J0956.7+2516_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578134/ft2_4FGL_J0956.7+2516_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578134/ft1_4FGL_J0956.7+2516_daily_bin86.fits outfile=/scratch/kocevski/578134/ft1_filteredMKT_4FGL_J0956.7+2516_daily_bin86.fits ra=149.176 dec=25.2817 rad=12.0 tmin=261619201.0 tmax=261878401.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.24
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578134/ft1_filtered_4FGL_J0956.7+2516_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/578134/ft2_4FGL_J0956.7+2516_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/578134/ltcube_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.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/578134/ft2_4FGL_J0956.7+2516_daily_bin86.fits
.....................!
real 12.54
user 12.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578134/ft1_filtered_4FGL_J0956.7+2516_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/578134/ft2_4FGL_J0956.7+2516_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/578134/ltcube_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.fits outfile=/scratch/kocevski/578134/expmap_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.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/578134/ltcube_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.fits
.....................!
real 191.12
user 185.78
sys 4.77

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/578134/ft1_filtered_4FGL_J0956.7+2516_daily_bin86.fits scfile=/scratch/kocevski/578134/ft2_4FGL_J0956.7+2516_daily_bin86.fits outfile=/scratch/kocevski/578134/cmap_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.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.66
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578134/ft1_filtered_4FGL_J0956.7+2516_daily_bin86.fits scfile=/scratch/kocevski/578134/ft2_4FGL_J0956.7+2516_daily_bin86.fits outfile=/scratch/kocevski/578134/cmap_HighResolution_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.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.57
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.935       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18920       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .81523E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6902       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.308       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2524       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92915       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=   8817.977     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2037 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.951        21.689       -.13397E-04   -.94183E-05
   2  norm          .10000E-03    5.8658        .48877E-07** at limit **
   3  norm          3.4745        1.5962        .16825E-06    .10488E-02
   4  Prefactor     .10000E-03    9.4191        .11173E-05** at limit **
   5  Prefactor     .18890        1.3040       -.48520E-07   -.31895E-03
   6  Prefactor     .10000E-03    9.5645       -.84285E-06** at limit **
   7  Prefactor     .10000E-03    194.68       -.24840E-04** at limit **
   8  Prefactor     .10000E-03    16.224       -.17339E-06** at limit **
   9  Prefactor     .10000E-03    3.3400       -.44449E-07** at limit **
  10  Prefactor     .10000E-03    4.4055       -.40617E-07** at limit **
  11  Prefactor     5.6907        2.4939       -.10745E-06   -.84670E-04
  12  norm          5.7506        6.5507       -.49254E-06   -.21395E-03
  13  Prefactor     .10000E-03    1.2554        .18782E-07** at limit **
  14  Prefactor     .10000E-03    8.2554       -.28104E-06** at limit **
  15  Prefactor     .25106        1.7830       -.46808E-06   -.28229E-04
  16  Prefactor     16.295        43.985       -.17328E-04    .87346E-05
  17  Prefactor     .10000E-03    3.0183       -.60807E-07** at limit **
  18  Prefactor     .10000E-03    .74380       -.88244E-07** at limit **
  19  Normalizat    1.2523        .14480        .16446E-05    .15209E-03
  20  Prefactor     .92903        .14385        .40135E-06    .26830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.951
  norm       = 0.0001
  norm       = 3.47446
  Prefactor  = 0.0001
  Prefactor  = 0.188895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69074
  norm       = 5.75056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.251056
  Prefactor  = 16.2953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25232
  Prefactor  = 0.929029
 **********
 **   18 **HESSE 
 **********

 FCN=   8817.977     FROM HESSE     STATUS=OK           293 CALLS     2330 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.951        21.638        .12116E-03   -1.5046    
   2  norm          .10000E-03    5.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4745        1.5951        .38805E-03   -1.5335    
   4  Prefactor     .10000E-03    9.4209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .18890        5.4206        .20169E-02   -1.5621    
   6  Prefactor     .10000E-03    9.5848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    201.25        .41782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3961        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6907        2.5002        .93427E-04   -1.5231    
  12  norm          5.7506        6.5599        .16751E-03   -1.5228    
  13  Prefactor     .10000E-03    1.2676        .10254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25106        11.071        .24114E-02   -1.5608    
  16  Prefactor     16.295        43.937        .99178E-04   -1.4900    
  17  Prefactor     .10000E-03    3.0664        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6069        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2523        .16999        .22449E-03   -.85001    
  20  Prefactor     .92903        .16942        .26164E-03   -.95134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8181e-08
Minuit parameter uncertainties:
  1  21.6531
  2  3.18856e-06
  3  1.59514
  4  2.49198e-06
  5  2.02345
  6  6.23448e-06
  7  0.000617886
  8  3.05009e-05
  9  8.5314e-06
  10  7.50428e-06
  11  2.50021
  12  6.56073
  13  2.17981e-06
  14  6.7128e-06
  15  3.33431
  16  44.0241
  17  1.00479e-05
  18  1.07713e-05
  19  0.170061
  20  0.169514
Done.

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

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  8.531e-06  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:  9.290e-01  1.695e-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.252e+00  1.701e-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: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578134/likelihoodResults_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.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) = 8817.9788032
delta logL = -0.00140328545422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8817.97739968
delta logL = 2.40490408032e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5712       1.0000          .0000       10.000    
     3 'Normalizat'    1.2523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92906       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=   8817.942     FROM MIGRAD    STATUS=FAILED       145 CALLS      298 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84724E-01    6.1654        .17144E-01   -.35993E-02
   2  Index         4.7686        2.9127        .50000        .25594E-04
   3  Normalizat    1.2398        .25160E-01    .22449E-03    .69582E-04
   4  Prefactor     .93679        .24735E-01    .26164E-03    .14339E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8817.942     FROM SIMPLEX   STATUS=UNCHANGED     66 CALLS      364 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84724E-01    6.1654        .12398E-03   -.35993E-02
   2  Index         4.7686        2.9127        .40498E-02    .25594E-04
   3  Normalizat    1.2398        .25160E-01    .55664E-04    .69582E-04
   4  Prefactor     .93679        .24735E-01    .36047E-04    .14339E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8817.942     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      410 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84722E-01    .64209         .0000       -.13259E-01
   2  Index         4.7686        2.9757         .0000        .61372E-04
   3  Normalizat    1.2398        .17101         .0000        .21270E-04
   4  Prefactor     .93679        .17142         .0000       -.78213E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0847225
  Index      = 4.76856
  Normalizat = 1.23978
  Prefactor  = 0.936792
 **********
 **   18 **HESSE 
 **********

 FCN=   8817.942     FROM HESSE     STATUS=OK            27 CALLS      437 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84722E-01    1.1202        .14410E-03   -1.5766    
   2  Index         4.7686        3.7133        .18059E-02   -.46305E-01
   3  Normalizat    1.2398        .17084        .17959E-05   -.85382    
   4  Prefactor     .93679        .17122        .20931E-05   -.94867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08672e-11
Minuit parameter uncertainties:
  1  0.615778
  2  4.18656
  3  0.170913
  4  0.171314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578134': 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) = 8817.94164772
delta logL = 0.0357521985334

Extracting fit parameters...

4FGL J0956.7+2516
   Spectrum: PowerLaw
235    Prefactor:  8.472e-02  6.158e-01  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  4.769e+00  4.187e+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:  9.368e-01  1.713e-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.240e+00  1.709e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/578134/cmap_HighResolution_261619201_261878401_4FGL_J0956.7+2516_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-01 06:11:18.525508', job_id='578134', GAL2='0.94', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1630501878.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.58e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='86' AND source_name='4FGL J0956.7+2516' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 06:11:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 578134: <4FGL_J0956.7+2516_daily_bin86> in cluster <slac> Done

Job <4FGL_J0956.7+2516_daily_bin86> 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) <bullet0120>, 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:11:21 2021
Results reported at Wed Sep  1 06:11:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0956.7+2516_daily_bin86 149.176 25.2817 261619201 261878401 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 :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

