/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 84 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 = 7439
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1015
RA = 149.471, Dec = 34.3975
tmin = 502416001, tmax = 502675201
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='611268', job_status='RUN', time_executed='2021-09-01 07:32:35.980252', time_epoch_executed='1630506755.98' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611268/ft1_4FGL_J0957.8+3423_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611268/ft1_4FGL_J0957.8+3423_daily_bin1015.fits outfile=/scratch/kocevski/611268/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1015.fits ra=149.471 dec=34.3975 rad=12.0 tmin=502416001.0 tmax=502675201.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.93
user 3.29
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.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/611268/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.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 1.25
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/611268/ltcube_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.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/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits
.....................!
real 12.64
user 11.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/611268/ltcube_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.fits outfile=/scratch/kocevski/611268/expmap_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.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/611268/ltcube_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.fits
.....................!
real 195.50
user 185.22
sys 5.42

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

Setting source of interest to:
4FGL J0957.8+3423 @ 149.471 34.3975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits scfile=/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits outfile=/scratch/kocevski/611268/cmap_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.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.471 yref=34.3975 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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits scfile=/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits outfile=/scratch/kocevski/611268/cmap_HighResolution_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.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.471 yref=34.3975 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/611268/Model_4FGL_J0957.8+3423_daily_bin1015.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/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits.....................!
real 46.84
user 44.65
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits', '/scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits', expMap='/scratch/kocevski/611268/expmap_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.fits', expCube='/scratch/kocevski/611268/ltcube_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/611268/Model_4FGL_J0957.8+3423_daily_bin1015.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0957.8+3423'

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/611268/ft1_filtered_4FGL_J0957.8+3423_daily_bin1015.fits
Spacecraft file(s): /scratch/kocevski/611268/ft2_4FGL_J0957.8+3423_daily_bin1015.fits
Exposure map: /scratch/kocevski/611268/expmap_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.fits
Exposure cube: /scratch/kocevski/611268/ltcube_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/611268/Model_4FGL_J0957.8+3423_daily_bin1015.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) = 5332.90312556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .89349       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18007       1.0000         .10000E-03   10000.    
     9 'norm      '    8.9501       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.072       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4602       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1574       1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91588       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5332.761     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     2982 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7931        2.1964        .43109E-07   -.13107E-04
   2  Prefactor     .10000E-03    12.016       -.23206E-05** at limit **
   3  Prefactor     .10000E-03    1.1798        .41996E-07** at limit **
   4  norm          .89352        1.2618        .70519E-07    .15127E-03
   5  Prefactor     .10000E-03    14.880       -.99879E-06** at limit **
   6  norm          .10000E-03    4.3271        .45220E-07** at limit **
   7  Prefactor     .10000E-03    .71824        .16199E-07** at limit **
   8  Prefactor     .16486        1.8118       -.16364E-06    .21390E-03
   9  norm          8.9513        11.628       -.33920E-07    .43121E-04
  10  Prefactor     11.072        26.081        .29984E-06    .19560E-04
  11  Prefactor     .10000E-03    5.9413       -.11156E-05** at limit **
  12  Prefactor     .10001E-03    26.968       -.40007E-05** at limit **
  13  Prefactor     5.8218        6.1421        .14841E-06   -.60183E-04
  14  Prefactor     8.7510        11.814       -.51526E-06   -.36976E-04
  15  Prefactor     .10000E-03    .70384        .31495E-07** at limit **
  16  norm          17.955        8.0170        .18377E-07   -.78704E-07
  17  Prefactor     5.4659        4.7922        .20857E-05   -.13183E-02
  18  Prefactor     .10000E-03    21.854        .28092E-05** at limit **
  19  Prefactor     1.1475        6.1163       -.15462E-05   -.48359E-03
  20  norm          .10000E-03    15.147       -.62019E-06** at limit **
  21  Prefactor     .10000E-03    18.246        .21832E-05** at limit **
  22  Prefactor     .10000E-03    16.103        .31828E-07** at limit **
  23  Prefactor     .10002E-03    2.8970        .11527E-05** at limit **
  24  Prefactor     .10000E-03    5.2052        .84691E-06** at limit **
  25  Prefactor     .10000E-03    17.137        .11229E-05** at limit **
  26  Prefactor     .10000E-03    9.1870        .51338E-06** at limit **
  27  Normalizat    .91592        .16783       -.34637E-06   -.17490E-03
  28  Prefactor     1.1137        .19654       -.26003E-06   -.11801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.79312
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.89352
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.164864
  norm       = 8.95126
  Prefactor  = 11.0721
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 5.82176
  Prefactor  = 8.75097
  Prefactor  = 0.0001
  norm       = 17.9548
  Prefactor  = 5.46591
  Prefactor  = 0.000100004
  Prefactor  = 1.14753
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.915919
  Prefactor  = 1.11371
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.761     FROM HESSE     STATUS=OK           521 CALLS     3503 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7931        2.1850        .11648E-03   -1.5440    
   2  Prefactor     .10000E-03    12.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1951        .77450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .89352        1.0998        .94338E-03   -1.5519    
   5  Prefactor     .10000E-03    15.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.3735        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .72937        .60419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16486        16.296        .18431E-02   -1.5627    
   9  norm          8.9513        11.625        .13398E-03   -1.5110    
  10  Prefactor     11.072        26.007        .12040E-03   -1.5042    
  11  Prefactor     .10000E-03    6.0395        .17521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    28.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8218        6.1335        .16644E-03   -1.5225    
  14  Prefactor     8.7510        11.820        .13549E-03   -1.5116    
  15  Prefactor     .10000E-03    .71405        .59811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.955        8.0183        .94520E-04   -1.4860    
  17  Prefactor     5.4659        4.9882        .64806E-03   -1.5240    
  18  Prefactor     .10000E-03    22.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1475        5.8237        .29155E-03   -1.5494    
  20  norm          .10000E-03    15.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    8.5896        .22879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.4628        .32594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.2143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91592        .19704        .22695E-03   -.95903    
  28  Prefactor     1.1137        .23371        .25387E-03   -.89029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06278e-09
Minuit parameter uncertainties:
  1  2.18507
  2  0.000396866
  3  2.73796e-06
  4  1.09984
  5  0.000175959
  6  7.21401e-06
  7  9.34631e-07
  8  3.27816
  9  11.6283
  10  26.0337
  11  0.000132423
  12  0.000998239
  13  6.13417
  14  11.8232
  15  1.26779e-06
  16  8.01876
  17  4.98857
  18  0.000617267
  19  5.17082
  20  0.000168217
  21  0.000459679
  22  6.63482e-06
  23  0.000726036
  24  6.95172e-05
  25  0.000205803
  26  7.53453e-05
  27  0.1972
  28  0.233925
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  8.751e+00  1.182e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.164e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.114e+00  2.339e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.159e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 9.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611268/likelihoodResults_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.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): 0
logL (Free Index) = 5331.94398542
delta logL = 0.817151450076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5331.92359876
delta logL = 0.837538102782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4788       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4838       1.0000          .0000       10.000    
     3 'Normalizat'    .85279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1646       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5331.924     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      249 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4788        22.301        .88257E-03    .82737E-03
   2  Index         3.4838        2.6353        .10675        .13750E-03
   3  Normalizat    .85277        .56147E-01    .44295E-01    .12862E-04
   4  Prefactor     1.1647        .65687E-01    .56291E-01    .53968E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4788
  Index      = 3.48383
  Normalizat = 0.852773
  Prefactor  = 1.16466
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.924     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4788        38.383        .35303E-04   -1.5465    
   2  Index         3.4838        3.8915        .38426E-02   -.30808    
   3  Normalizat    .85277        .18914        .23405E-03   -.98140    
   4  Prefactor     1.1647        .23004        .24891E-03   -.87426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19739e-07
Minuit parameter uncertainties:
  1  15.0782
  2  4.55376
  3  0.189289
  4  0.230235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611268': 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) = 5331.92359865
delta logL = 0.83753821341

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.479e+00  1.508e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.484e+00  4.554e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.466e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.165e+00  2.302e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.528e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 149.471 34.398
Photon Index (Free Index): 3.48 +/- 4.55
Photon Flux (Free Index): 6.90e-08 +/- 5.34e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.44e-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/611268/cmap_HighResolution_502416001_502675201_4FGL_J0957.8+3423_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='8.38e-01', photon_flux2='6.90e-08', job_status='DONE', time_completed='2021-09-01 07:44:21.899474', photon_index_error2='4.55', photon_index2='3.48', ts='0.69', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='9.84e-08', energy_flux_error2='1.44e-05', EG='0.92', time_epoch_completed='1630507461.9', return_code='0', job_id='611268', GAL2='1.16', EG2='0.85', return_code2='102', photon_flux_error2='5.34e-08', ts2='2.49', photon_index='2.16' WHERE bin_id='1015' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:44:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 611268: <4FGL_J0957.8+3423_daily_bin1015> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1015> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:30:30 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 07:30:31 2021
Terminated at Wed Sep  1 07:44:25 2021
Results reported at Wed Sep  1 07:44:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1015 149.471 34.3975 502416001 502675201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0957.8+3423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

