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


Performing analysis on: 4FGL_J0957.6+5523_daily_bin1033
RA = 149.416, Dec = 55.3838
tmin = 507081601, tmax = 507340801
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='599879', job_status='RUN', time_executed='2021-09-01 06:55:53.907861', time_epoch_executed='1630504553.91' WHERE source_name='4FGL J0957.6+5523' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/599879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/599879/ft1_4FGL_J0957.6+5523_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/599879/ft1_4FGL_J0957.6+5523_daily_bin1033.fits outfile=/scratch/kocevski/599879/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1033.fits ra=149.416 dec=55.3838 rad=12.0 tmin=507081601.0 tmax=507340801.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 5.05
user 4.29
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.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/599879/ft1_filteredMKT_4FGL_J0957.6+5523_daily_bin1033.fits evtable="EVENTS" outfile="/scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/599879/ltcube_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.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/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits
.....................!
real 12.37
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/599879/ltcube_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.fits outfile=/scratch/kocevski/599879/expmap_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.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/599879/ltcube_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.fits
.....................!
real 190.00
user 185.56
sys 4.06

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

Setting source of interest to:
4FGL J0957.6+5523 @ 149.416 55.3838

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits scfile=/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits outfile=/scratch/kocevski/599879/cmap_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.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.416 yref=55.3838 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits scfile=/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits outfile=/scratch/kocevski/599879/cmap_HighResolution_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.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.416 yref=55.3838 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/599879/Model_4FGL_J0957.6+5523_daily_bin1033.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/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits.....................!
real 52.79
user 51.29
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits', '/scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits', expMap='/scratch/kocevski/599879/expmap_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.fits', expCube='/scratch/kocevski/599879/ltcube_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/599879/Model_4FGL_J0957.6+5523_daily_bin1033.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.6+5523'

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/599879/ft1_filtered_4FGL_J0957.6+5523_daily_bin1033.fits
Spacecraft file(s): /scratch/kocevski/599879/ft2_4FGL_J0957.6+5523_daily_bin1033.fits
Exposure map: /scratch/kocevski/599879/expmap_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.fits
Exposure cube: /scratch/kocevski/599879/ltcube_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/599879/Model_4FGL_J0957.6+5523_daily_bin1033.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) = 5156.13369216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4019       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.119       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16650E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    68.219       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3689       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1052       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3016       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.380       1.0000         .10000E-03   10000.    
    25 'norm      '    .12210E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.4777       1.0000         .10000E-03   10000.    
    27 'Prefactor '    74.386       1.0000         .10000E-03   10000.    
    28 'Prefactor '    144.22       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93745       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81816       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5156.088     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4584 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3790        .17376E-07** at limit **
   2  norm          6.4018        7.4979        .11871E-06   -.33078E-04
   3  Prefactor     .10000E-03    5.8471        .21524E-06** at limit **
   4  Prefactor     .10000E-03    7.5316       -.83183E-07** at limit **
   5  Prefactor     .10000E-03    20.771       -.49794E-06** at limit **
   6  Prefactor     26.118        52.558       -.26796E-06   -.78352E-05
   7  norm          4.6115        1.4988       -.97737E-07    .59404E-04
   8  Prefactor     1.0058        3.0824        .61323E-06   -.21133E-03
   9  Prefactor     9.1395        11.238       -.26963E-08   -.12319E-04
  10  Prefactor     .10000E-03    2.3774        .26294E-07** at limit **
  11  Prefactor     11.429        18.917        .24099E-07    .53426E-05
  12  Prefactor     .10000E-03    54.450       -.28633E-05** at limit **
  13  Prefactor     9.3481        11.145        .19158E-05   -.25502E-03
  14  Prefactor     .10000E-03    5.9760       -.30710E-06** at limit **
  15  norm          .10000E-03    6.7681        .39149E-06** at limit **
  16  Prefactor     68.224        41.677        .14431E-06    .64803E-04
  17  norm          1.3689        .54627       -.24273E-08    .30291E-04
  18  norm          .10000E-03    19.214        .58195E-06** at limit **
  19  Prefactor     .10000E-03    3.4503        .21070E-07** at limit **
  20  norm          1.1050        .69469       -.22588E-07   -.12562E-03
  21  norm          1.3016        1.3940       -.11278E-07    .47039E-04
  22  Prefactor     .10000E-03    14.120        .10086E-06** at limit **
  23  norm          .10000E-03    6.5059       -.67835E-07** at limit **
  24  Prefactor     22.401        17.351        .38698E-07   -.76250E-05
  25  norm          .10000E-03    1.5986       -.43473E-07** at limit **
  26  norm          3.4779        1.8732        .15070E-07    .20911E-04
  27  Prefactor     74.390        79.682        .76962E-06    .25179E-04
  28  Prefactor     144.19        115.17       -.31284E-05   -.12383E-03
  29  norm          .10000E-03    .72375       -.68428E-07** at limit **
  30  Prefactor     .10000E-03    38.527        .78417E-07** at limit **
  31  Prefactor     14.182        20.852        .42464E-06    .17211E-04
  32  Normalizat    .93728        .17213       -.32031E-06   -.13298E-04
  33  Prefactor     .81835        .18434       -.18062E-06   -.15927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.40181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1183
  norm       = 4.61149
  Prefactor  = 1.00584
  Prefactor  = 9.13949
  Prefactor  = 0.0001
  Prefactor  = 11.429
  Prefactor  = 0.000100003
  Prefactor  = 9.34807
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 68.2239
  norm       = 1.36894
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10505
  norm       = 1.30164
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4015
  norm       = 0.0001
  norm       = 3.47785
  Prefactor  = 74.3903
  Prefactor  = 144.195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1817
  Normalizat = 0.937281
  Prefactor  = 0.818347
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.088     FROM HESSE     STATUS=OK           693 CALLS     5277 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3980        .14671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4018        7.4909        .15863E-03   -1.5202    
   3  Prefactor     .10000E-03    5.8741        .16972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.6051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.118        52.546        .78384E-04   -1.4685    
   7  norm          4.6115        1.4986        .45863E-04   -1.5278    
   8  Prefactor     1.0058        3.0837        .21427E-03   -1.5507    
   9  Prefactor     9.1395        11.206        .13257E-03   -1.5103    
  10  Prefactor     .10000E-03    2.4212        .10798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.429        18.863        .11850E-03   -1.5032    
  12  Prefactor     .10000E-03    58.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3481        11.592        .65573E-03   -1.5096    
  14  Prefactor     .10000E-03    6.1111        .17133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.7910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     68.224        41.936        .48596E-04   -1.4054    
  17  norm          1.3689        .54904        .32376E-04   -1.5474    
  18  norm          .10000E-03    19.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4924        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1050        .69472        .45504E-04   -1.5498    
  21  norm          1.3016        1.4054        .85512E-04   -1.5480    
  22  Prefactor     .10000E-03    14.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.5093        .17890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.401        15.997        .84670E-04   -1.4761    
  25  norm          .10000E-03    2.9636        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.4779        1.8743        .69789E-04   -1.5335    
  27  Prefactor     74.390        79.900        .46553E-04   -1.3981    
  28  Prefactor     144.19        120.99        .16775E-03   -1.3301    
  29  norm          .10000E-03    .72452        .59550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    38.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     14.182        20.915        .10638E-03   -1.4955    
  32  Normalizat    .93728        .19368        .23172E-03   -.95162    
  33  Prefactor     .81835        .20654        .27673E-03   -.99056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00456e-10
Minuit parameter uncertainties:
  1  1.95114e-06
  2  7.49201
  3  2.0669e-05
  4  6.95133e-06
  5  8.07816e-05
  6  52.639
  7  1.49863
  8  3.08424
  9  11.2089
  10  1.86113e-06
  11  18.8727
  12  0.00083778
  13  11.5952
  14  2.69986e-05
  15  2.7471e-05
  16  41.9541
  17  0.549046
  18  8.85741e-05
  19  1.82987e-06
  20  0.694729
  21  1.40542
  22  1.39492e-05
  23  6.66931e-06
  24  15.9996
  25  9.4721e-06
  26  1.87432
  27  80.0158
  28  121.198
  29  1.11395e-06
  30  6.95136e-05
  31  20.9256
  32  0.193823
  33  0.20674
Done.

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

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.369e+00  5.490e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.900e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  8.183e-01  2.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  9.373e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.86
Ra Dec: 149.416 55.384
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 6.72e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 1.85e-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) = 5155.57702009
delta logL = 0.51112034214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5155.57626565
delta logL = 0.511874784902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2421       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5313       1.0000          .0000       5.0000    
     3 'Normalizat'    .95916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5155.576     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2423        .51715        .73841E-02   -.23874E-03
   2  alpha         1.5313        .30457        .21921       -.24728E-04
   3  Normalizat    .95915        .15967        .45653E-01    .68764E-05
   4  Prefactor     .80651        .17950        .63041E-01    .11808E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24228
  alpha      = 1.53126
  Normalizat = 0.959147
  Prefactor  = 0.806508
 **********
 **   18 **HESSE 
 **********

 FCN=   5155.576     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2423        .57591        .32389E-04   -1.5485    
   2  alpha         1.5313        .35299        .92317E-02   -.39792    
   3  Normalizat    .95915        .18100        .22948E-03   -.94412    
   4  Prefactor     .80651        .20315        .27883E-03   -.99489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53539e-10
Minuit parameter uncertainties:
  1  0.575913
  2  0.354381
  3  0.181115
  4  0.203338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/599879': 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) = 5155.57626551
delta logL = 0.511874924615

Extracting fit parameters...

4FGL J0957.6+5523
   Spectrum: LogParabola
392         norm:  1.242e+00  5.759e-01  1.000e-04  1.000e+04 ( 1.000e-11)
393        alpha:  1.531e+00  3.544e-01  0.000e+00  5.000e+00 ( 1.000e+00)
394         beta:  7.829e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
395           Eb:  7.977e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
763    Prefactor:  8.065e-01  2.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
764        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
765        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
762   Normalization:  9.591e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.86
Ra Dec: 149.416 55.384
Photon Index (Free Index): 1.53 +/- 0.35
Photon Flux (Free Index): 4.65e-08 +/- 2.60e-08
Energy Flux (Free Index): 7.51e-05 +/- 5.24e-05

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/599879/cmap_HighResolution_507081601_507340801_4FGL_J0957.6+5523_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.72e-08', energy_flux2='7.51e-05', photon_flux_error='2.70e-08', dlogl='5.12e-01', energy_flux='4.61e-05', photon_flux2='4.65e-08', job_status='DONE', time_completed='2021-09-01 07:10:50.531170', photon_index_error2='0.35', photon_index2='1.53', ts='30.86', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='5.24e-05', EG='0.94', time_epoch_completed='1630505450.53', return_code='0', job_id='599879', GAL2='0.81', EG2='0.96', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='2.60e-08', ts2='31.86', photon_index='1.90' WHERE bin_id='1033' AND source_name='4FGL J0957.6+5523' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 599879: <4FGL_J0957.6+5523_daily_bin1033> in cluster <slac> Done

Job <4FGL_J0957.6+5523_daily_bin1033> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 06:55:38 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 06:55:39 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:55:39 2021
Terminated at Wed Sep  1 07:10:51 2021
Results reported at Wed Sep  1 07:10:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.6+5523_daily_bin1033 149.416 55.3838 507081601 507340801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.6+5523 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   882.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             332.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

