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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1044
RA = 149.471, Dec = 34.3975
tmin = 509932801, tmax = 510192001
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='611310', job_status='RUN', time_executed='2021-09-01 07:32:36.834099', time_epoch_executed='1630506756.83' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611310/ft1_4FGL_J0957.8+3423_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611310/ft1_4FGL_J0957.8+3423_daily_bin1044.fits outfile=/scratch/kocevski/611310/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1044.fits ra=149.471 dec=34.3975 rad=12.0 tmin=509932801.0 tmax=510192001.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.19
user 3.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.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/611310/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/611310/ft1_filtered_4FGL_J0957.8+3423_daily_bin1044.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 2.04
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611310/ft1_filtered_4FGL_J0957.8+3423_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/611310/ltcube_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.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/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits
.....................!
real 13.92
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611310/ft1_filtered_4FGL_J0957.8+3423_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/611310/ltcube_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.fits outfile=/scratch/kocevski/611310/expmap_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.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/611310/ltcube_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.fits
.....................!
real 203.79
user 187.38
sys 3.68

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/611310/ft1_filtered_4FGL_J0957.8+3423_daily_bin1044.fits scfile=/scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits outfile=/scratch/kocevski/611310/cmap_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611310/ft1_filtered_4FGL_J0957.8+3423_daily_bin1044.fits scfile=/scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits outfile=/scratch/kocevski/611310/cmap_HighResolution_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.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.62
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/611310/ft1_filtered_4FGL_J0957.8+3423_daily_bin1044.fits', '/scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits', expMap='/scratch/kocevski/611310/expmap_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.fits', expCube='/scratch/kocevski/611310/ltcube_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/611310/Model_4FGL_J0957.8+3423_daily_bin1044.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/611310/ft1_filtered_4FGL_J0957.8+3423_daily_bin1044.fits
Spacecraft file(s): /scratch/kocevski/611310/ft2_4FGL_J0957.8+3423_daily_bin1044.fits
Exposure map: /scratch/kocevski/611310/expmap_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.fits
Exposure cube: /scratch/kocevski/611310/ltcube_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/611310/Model_4FGL_J0957.8+3423_daily_bin1044.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) = 5953.42050215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11758E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8767       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3679       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .15646       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8688       1.0000         .10000E-03   10000.    
    20 'norm      '    21.539       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.057       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41981       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2303       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78700       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=   5953.415     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3522 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0759       -.33746E-07** at limit **
   2  Prefactor     .10000E-03    26.012       -.29417E-05** at limit **
   3  Prefactor     .10000E-03    1.6118       -.13366E-06** at limit **
   4  norm          3.8980        2.1044        .73500E-08    .56151E-04
   5  Prefactor     .10000E-03    7.8720        .58982E-06** at limit **
   6  norm          .10000E-03    32.811       -.12607E-04** at limit **
   7  Prefactor     7.1159        3.1746       -.12609E-06    .24802E-03
   8  Prefactor     5.8773        5.1469       -.34897E-06    .72715E-04
   9  norm          .10000E-03    5.5344       -.60435E-07** at limit **
  10  Prefactor     37.122        30.959        .14859E-06   -.63902E-05
  11  Prefactor     .10000E-03    45.241       -.40601E-05** at limit **
  12  Prefactor     .10000E-03    83.796        .76337E-05** at limit **
  13  Prefactor     8.3684        6.5760       -.15021E-05    .46524E-03
  14  Prefactor     13.185        10.500        .19886E-07    .42932E-04
  15  Prefactor     .10000E-03    1.4313        .31893E-07** at limit **
  16  norm          .15086        6.8953       -.26433E-06    .84390E-05
  17  Prefactor     .10000E-03    1.4212        .10517E-06** at limit **
  18  Prefactor     .10000E-03    7.8162       -.80904E-06** at limit **
  19  Prefactor     1.8691        3.1061       -.54740E-06    .12132E-03
  20  norm          21.538        10.385        .31216E-06    .13267E-03
  21  Prefactor     46.059        63.945       -.73870E-06    .52302E-05
  22  Prefactor     10.241        19.518        .69714E-07    .26839E-04
  23  Prefactor     .42545        3.1945        .39638E-06    .35117E-03
  24  Prefactor     .10000E-03    2.6623       -.66160E-07** at limit **
  25  Prefactor     .10000E-03    10.436        .10726E-06** at limit **
  26  Prefactor     .10001E-03    50.157       -.85766E-05** at limit **
  27  Normalizat    1.2302        .17984        .12174E-06    .15371E-03
  28  Prefactor     .78691        .19544        .10031E-05    .14018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.89799
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 7.11586
  Prefactor  = 5.87731
  norm       = 0.0001
  Prefactor  = 37.1218
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 8.36842
  Prefactor  = 13.1853
  Prefactor  = 0.0001
  norm       = 0.150855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86908
  norm       = 21.5384
  Prefactor  = 46.0592
  Prefactor  = 10.2409
  Prefactor  = 0.425453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 1.23024
  Prefactor  = 0.786911
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.415     FROM HESSE     STATUS=OK           527 CALLS     4049 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0792        .78154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6351        .95592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8980        2.1030        .78173E-04   -1.5313    
   5  Prefactor     .10000E-03    7.8913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    32.875        .35201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1159        3.1246        .86107E-04   -1.5174    
   8  Prefactor     5.8773        5.1443        .15117E-03   -1.5223    
   9  norm          .10000E-03    5.5380        .17728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.122        31.007        .65783E-04   -1.4489    
  11  Prefactor     .10000E-03    46.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    85.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3684        6.6607        .69292E-03   -1.5129    
  14  Prefactor     13.185        10.530        .11031E-03   -1.4982    
  15  Prefactor     .10000E-03    1.4757        .18008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .15086        8.7538        .60406E-01   -1.5630    
  17  Prefactor     .10000E-03    1.4370        .89681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8691        3.0894        .16898E-03   -1.5435    
  20  norm          21.538        10.316        .86305E-04   -1.4779    
  21  Prefactor     46.059        63.967        .59080E-04   -1.4350    
  22  Prefactor     10.241        19.473        .12524E-03   -1.5068    
  23  Prefactor     .42545        6.3420        .25455E-02   -1.5578    
  24  Prefactor     .10000E-03    2.6870        .12270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    52.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2302        .21230        .22537E-03   -.85673    
  28  Prefactor     .78691        .23062        .31008E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35098e-09
Minuit parameter uncertainties:
  1  1.18402e-06
  2  0.000298103
  3  1.92734e-06
  4  2.10306
  5  3.7582e-05
  6  0.000482042
  7  3.12465
  8  5.14464
  9  3.79437e-06
  10  31.02
  11  0.000548861
  12  0.000959669
  13  6.66126
  14  10.5317
  15  3.65752e-06
  16  2.2979
  17  5.59302e-06
  18  4.95991e-05
  19  3.08963
  20  10.3172
  21  64.0628
  22  19.4847
  23  3.28529
  24  5.6607e-06
  25  2.16441e-06
  26  0.00108516
  27  0.212453
  28  0.230906
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.319e+01  1.053e+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:  7.869e-01  2.309e-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:  1.230e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.45e-05

TS (Fixed Index): 2.60
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/611310/likelihoodResults_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.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) = 5953.40124304
delta logL = 0.014209880399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5953.37297353
delta logL = 0.0424793908487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7368       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9464       1.0000          .0000       10.000    
     3 'Normalizat'    1.1934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81608       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=   5953.373     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      248 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7833        73.269        .46220E-02    .26286E-03
   2  Index         2.9415        3.1880        .10217        .16441E-03
   3  Normalizat    1.1938        .67990E-01    .51646E-01   -.53751E-04
   4  Prefactor     .81562        .68451E-01    .68995E-01   -.18838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78334
  Index      = 2.94154
  Normalizat = 1.19375
  Prefactor  = 0.815616
 **********
 **   18 **HESSE 
 **********

 FCN=   5953.373     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7833        117.27        .11551E-03   -1.5271    
   2  Index         2.9415        6.4674        .52027E-02   -.42431    
   3  Normalizat    1.1938        .22602        .22834E-03   -.86796    
   4  Prefactor     .81562        .23172        .30527E-03   -.99155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.70715e-07
Minuit parameter uncertainties:
  1  47.4733
  2  5.46091
  3  0.226208
  4  0.231998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611310': 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) = 5953.37296953
delta logL = 0.0424833867028

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  4.783e+00  4.747e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.942e+00  5.461e+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:  8.156e-01  2.320e-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:  1.194e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.94 +/- 5.46
Photon Flux (Free Index): 6.65e-08 +/- 1.38e-07
Energy Flux (Free Index): 1.37e-05 +/- 1.65e-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/611310/cmap_HighResolution_509932801_510192001_4FGL_J0957.8+3423_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='1.37e-05', photon_flux_error='3.02e-08', dlogl='4.25e-02', energy_flux='1.82e-05', photon_flux2='6.65e-08', job_status='DONE', time_completed='2021-09-01 07:45:56.708156', photon_index_error2='5.46', photon_index2='2.94', ts='2.60', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.65e-05', EG='1.23', time_epoch_completed='1630507556.71', return_code='0', job_id='611310', GAL2='0.82', EG2='1.19', return_code2='102', energy_flux_error='1.45e-05', photon_flux_error2='1.38e-07', ts2='2.72', photon_index='2.16' WHERE bin_id='1044' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 611310: <4FGL_J0957.8+3423_daily_bin1044> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1044> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:30:32 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:30:33 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:33 2021
Terminated at Wed Sep  1 07:45:57 2021
Results reported at Wed Sep  1 07:45:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1044 149.471 34.3975 509932801 510192001 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 :                                   774.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

