/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 37 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 = 7383
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin276
RA = 149.471, Dec = 34.3975
tmin = 310867201, tmax = 311126401
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='604599', job_status='RUN', time_executed='2021-09-01 07:13:31.078348', time_epoch_executed='1630505611.08' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604599/ft1_4FGL_J0957.8+3423_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604599/ft2_4FGL_J0957.8+3423_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604599/ft1_4FGL_J0957.8+3423_daily_bin276.fits outfile=/scratch/kocevski/604599/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin276.fits ra=149.471 dec=34.3975 rad=12.0 tmin=310867201.0 tmax=311126401.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.02
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604599/ft1_filtered_4FGL_J0957.8+3423_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/604599/ft2_4FGL_J0957.8+3423_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/604599/ltcube_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.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/604599/ft2_4FGL_J0957.8+3423_daily_bin276.fits
.....................!
real 16.23
user 15.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604599/ft1_filtered_4FGL_J0957.8+3423_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/604599/ft2_4FGL_J0957.8+3423_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/604599/ltcube_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.fits outfile=/scratch/kocevski/604599/expmap_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.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/604599/ltcube_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.fits
.....................!
real 194.30
user 185.81
sys 4.31

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/604599/ft1_filtered_4FGL_J0957.8+3423_daily_bin276.fits scfile=/scratch/kocevski/604599/ft2_4FGL_J0957.8+3423_daily_bin276.fits outfile=/scratch/kocevski/604599/cmap_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604599/ft1_filtered_4FGL_J0957.8+3423_daily_bin276.fits scfile=/scratch/kocevski/604599/ft2_4FGL_J0957.8+3423_daily_bin276.fits outfile=/scratch/kocevski/604599/cmap_HighResolution_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.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/604599/ft1_filtered_4FGL_J0957.8+3423_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/604599/ft2_4FGL_J0957.8+3423_daily_bin276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/604599/Model_4FGL_J0957.8+3423_daily_bin276.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/604599/ft1_filtered_4FGL_J0957.8+3423_daily_bin276.fits.....................!
real 50.26
user 47.97
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9369       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .97947       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11382E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3755       1.0000         .10000E-03   10000.    
    16 'norm      '    10.867       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43646       1.0000         .10000E-03   10000.    
    20 'norm      '    3.7336       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.524       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.990       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.998       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.051       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .93793       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1281       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=   5721.679     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3499 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9370        3.5561       -.64481E-06   -.65625E-03
   2  Prefactor     .10000E-03    11.151        .50385E-06** at limit **
   3  Prefactor     .97984        2.1552       -.69245E-06   -.13768E-02
   4  norm          .10000E-03    .82732        .41857E-07** at limit **
   5  Prefactor     .10000E-03    9.5818       -.53993E-05** at limit **
   6  norm          .10000E-03    6.7322       -.92621E-06** at limit **
   7  Prefactor     .10000E-03    .87726       -.16684E-06** at limit **
   8  Prefactor     .10000E-03    3.4031        .43096E-08** at limit **
   9  norm          .10000E-03    12.919        .44474E-05** at limit **
  10  Prefactor     2.1120        93.291       -.12532E-04   -.35579E-04
  11  Prefactor     11.863        15.560        .95766E-05   -.75318E-04
  12  Prefactor     .10000E-03    14.798       -.44239E-05** at limit **
  13  Prefactor     .10000E-03    5.1278        .49814E-06** at limit **
  14  Prefactor     .10000E-03    3.9433       -.32186E-07** at limit **
  15  Prefactor     1.3746        1.9645       -.80261E-07   -.39367E-03
  16  norm          10.867        8.2539       -.42404E-07   -.16431E-04
  17  Prefactor     .10000E-03    1.4729        .15265E-06** at limit **
  18  Prefactor     .10000E-03    8.2300        .35728E-05** at limit **
  19  Prefactor     .43545        3.2244       -.11210E-05   -.13963E-03
  20  norm          3.7333        5.6797       -.31626E-06   -.14003E-03
  21  Prefactor     10.514        59.263       -.26221E-04    .10357E-04
  22  Prefactor     34.992        28.117       -.35355E-05    .54325E-04
  23  Prefactor     13.996        5.4832       -.93875E-07    .26512E-04
  24  Prefactor     .10000E-03    5.0679       -.12348E-06** at limit **
  25  Prefactor     .10000E-03    22.516        .41957E-08** at limit **
  26  Prefactor     23.050        24.189       -.33045E-05    .14031E-04
  27  Normalizat    .93832        .16706        .16223E-05    .26341E-03
  28  Prefactor     1.1277        .19203        .27290E-06    .23868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93701
  Prefactor  = 0.0001
  Prefactor  = 0.979844
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 2.11197
  Prefactor  = 11.8626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37456
  norm       = 10.867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.435448
  norm       = 3.7333
  Prefactor  = 10.5144
  Prefactor  = 34.9916
  Prefactor  = 13.9963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0499
  Normalizat = 0.938322
  Prefactor  = 1.12772
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.679     FROM HESSE     STATUS=OK           521 CALLS     4020 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9370        3.5579        .18593E-03   -1.5430    
   2  Prefactor     .10000E-03    11.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .97984        1.8616        .15992E-02   -1.5510    
   4  norm          .10000E-03    .86673        .13431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.9008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6142        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5180        .27205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1120        94.850        .27463E-03   -1.5417    
  11  Prefactor     11.863        15.337        .11622E-03   -1.5019    
  12  Prefactor     .10000E-03    14.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1866        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9520        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3746        1.9299        .12140E-03   -1.5473    
  16  norm          10.867        8.2531        .12154E-03   -1.5049    
  17  Prefactor     .10000E-03    1.4821        .89291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .43545        6.8078        .25279E-02   -1.5576    
  20  norm          3.7333        5.6666        .20897E-03   -1.5322    
  21  Prefactor     10.514        59.196        .12351E-03   -1.5059    
  22  Prefactor     34.992        27.966        .33874E-03   -1.4524    
  23  Prefactor     13.996        5.4899        .10525E-03   -1.4960    
  24  Prefactor     .10000E-03    5.1891        .33124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     23.050        24.198        .83429E-04   -1.4747    
  27  Normalizat    .93832        .19640        .23061E-03   -.95126    
  28  Prefactor     1.1277        .22775        .25719E-03   -.88586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05661e-08
Minuit parameter uncertainties:
  1  3.55831
  2  1.18738e-06
  3  1.86173
  4  1.32496e-06
  5  3.96355e-07
  6  9.66415e-06
  7  1.17095e-05
  8  3.01113e-06
  9  0.000455548
  10  28.3542
  11  15.3421
  12  0.000116984
  13  9.07128e-06
  14  1.81495e-06
  15  1.92994
  16  8.254
  17  1.25472e-05
  18  6.45855e-06
  19  3.44359
  20  5.66738
  21  49.9719
  22  27.976
  23  5.49008
  24  7.87111e-05
  25  2.54455e-05
  26  24.2083
  27  0.196549
  28  0.227944
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.815e-06  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.128e+00  2.279e-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.383e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/604599/likelihoodResults_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.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) = 5721.68030434
delta logL = -0.00120377822259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5721.67910058
delta logL = -1.37652023113e-08

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 'Index     '    2.1633       1.0000          .0000       10.000    
     3 'Normalizat'    .93833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1277       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=   5721.679     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    688.71        .90712E-02** at limit **
   2  Index         2.1625        6.0530        .50000        .15933E-05
   3  Normalizat    .93832        .76494E-01    .45390E-01   -.83137E-05
   4  Prefactor     1.1277        .92289E-01    .58159E-01    .37131E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16246
  Normalizat = 0.938322
  Prefactor  = 1.12772
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.679     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    369.30        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1625        8.3968        .50000       -.60348    
   3  Normalizat    .93832        .44618E-01    .23061E-03   -.95126    
   4  Prefactor     1.1277        .54244E-01    .25719E-03   -.88586    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.77605e-10
Minuit parameter uncertainties:
  1  3.0982e-05
  2  40.0736
  3  0.0446194
  4  0.0542462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604599': 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) = 5721.67910056
delta logL = 8.24911694508e-10

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.098e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.162e+00  4.007e+01  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.128e+00  5.425e-02  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.383e-01  4.462e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.471 34.398

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/604599/cmap_HighResolution_310867201_311126401_4FGL_J0957.8+3423_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-09-01 07:26:37.475549', job_id='604599', GAL2='1.13', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630506397.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='8.25e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='276' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:26:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 604599: <4FGL_J0957.8+3423_daily_bin276> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin276> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:11:14 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:11:15 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:11:15 2021
Terminated at Wed Sep  1 07:26:38 2021
Results reported at Wed Sep  1 07:26:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin276 149.471 34.3975 310867201 311126401 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 :                                   771.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

