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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1392
RA = 149.471, Dec = 34.3975
tmin = 600134401, tmax = 600393601
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='611864', job_status='RUN', time_executed='2021-09-01 07:33:56.011098', time_epoch_executed='1630506836.01' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611864/ft1_4FGL_J0957.8+3423_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611864/ft2_4FGL_J0957.8+3423_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611864/ft1_4FGL_J0957.8+3423_daily_bin1392.fits outfile=/scratch/kocevski/611864/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1392.fits ra=149.471 dec=34.3975 rad=12.0 tmin=600134401.0 tmax=600393601.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 6.13
user 4.61
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/611864/ft2_4FGL_J0957.8+3423_daily_bin1392.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/611864/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1392.fits evtable="EVENTS" outfile="/scratch/kocevski/611864/ft1_filtered_4FGL_J0957.8+3423_daily_bin1392.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.00
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611864/ft1_filtered_4FGL_J0957.8+3423_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/611864/ft2_4FGL_J0957.8+3423_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/611864/ltcube_600134401_600393601_4FGL_J0957.8+3423_daily_bin1392.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/611864/ft2_4FGL_J0957.8+3423_daily_bin1392.fits
.....................!
real 13.40
user 12.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611864/ft1_filtered_4FGL_J0957.8+3423_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/611864/ft2_4FGL_J0957.8+3423_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/611864/ltcube_600134401_600393601_4FGL_J0957.8+3423_daily_bin1392.fits outfile=/scratch/kocevski/611864/expmap_600134401_600393601_4FGL_J0957.8+3423_daily_bin1392.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/611864/ltcube_600134401_600393601_4FGL_J0957.8+3423_daily_bin1392.fits
.....................!
real 189.54
user 185.05
sys 4.14

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/611864/ft1_filtered_4FGL_J0957.8+3423_daily_bin1392.fits scfile=/scratch/kocevski/611864/ft2_4FGL_J0957.8+3423_daily_bin1392.fits outfile=/scratch/kocevski/611864/cmap_600134401_600393601_4FGL_J0957.8+3423_daily_bin1392.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.57
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1239       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .88500E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9995       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12270E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.634       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34263       1.0000         .10000E-03   10000.    
    16 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0489       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71092       1.0000         .10000E-03   10000.    
    20 'norm      '    7.4328       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16736E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5397       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.5277       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67717       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2399       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=   4879.795     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3582 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1566        .11531E-07** at limit **
   2  Prefactor     .10000E-03    68.109        .18136E-05** at limit **
   3  Prefactor     2.1235        3.3102        .14428E-06   -.14341E-03
   4  norm          1.4864        1.4425        .14586E-07    .40532E-04
   5  Prefactor     .10000E-03    8.5459       -.14010E-06** at limit **
   6  norm          .14187        7.0064        .28289E-06   -.74993E-04
   7  Prefactor     5.9967        2.9482        .48628E-07   -.11208E-03
   8  Prefactor     .10000E-03    3.2967        .34641E-07** at limit **
   9  norm          .10000E-03    15.681       -.35358E-06** at limit **
  10  Prefactor     .10000E-03    10.115        .70471E-06** at limit **
  11  Prefactor     .10000E-03    59.715        .75205E-06** at limit **
  12  Prefactor     23.258        35.113       -.39548E-05   -.21747E-03
  13  Prefactor     21.638        9.8730        .26983E-07   -.59830E-04
  14  Prefactor     4.2316        6.5849        .25074E-05   -.10104E-02
  15  Prefactor     .34954        1.6586        .19270E-06   -.32186E-03
  16  norm          .10000E-03    7.4780        .69164E-07** at limit **
  17  Prefactor     .10000E-03    2.8924       -.51266E-06** at limit **
  18  Prefactor     5.0618        77.711        .14313E-04    .13257E-03
  19  Prefactor     .71185        4.9497        .51809E-06   -.17423E-03
  20  norm          7.4346        11.899       -.12320E-05   -.76752E-04
  21  Prefactor     .10000E-03    57.957       -.18243E-05** at limit **
  22  Prefactor     .10000E-03    13.850        .71338E-06** at limit **
  23  Prefactor     .10000E-03    2.1319       -.10505E-06** at limit **
  24  Prefactor     1.5399        2.3787        .32282E-07   -.59426E-04
  25  Prefactor     .10000E-03    10.856       -.71205E-06** at limit **
  26  Prefactor     6.5146        19.612        .69881E-06    .17256E-04
  27  Normalizat    .67695        .18516       -.62567E-06   -.13463E-04
  28  Prefactor     1.2400        .20287       -.33589E-06   -.14669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.1235
  norm       = 1.48641
  Prefactor  = 0.0001
  norm       = 0.141866
  Prefactor  = 5.99671
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.2584
  Prefactor  = 21.6385
  Prefactor  = 4.23164
  Prefactor  = 0.349537
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.06184
  Prefactor  = 0.711854
  norm       = 7.43455
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53992
  Prefactor  = 0.0001
  Prefactor  = 6.51464
  Normalizat = 0.676951
  Prefactor  = 1.23999
 **********
 **   18 **HESSE 
 **********

 FCN=   4879.795     FROM HESSE     STATUS=OK           529 CALLS     4111 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1594        .73360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    68.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1235        3.2812        .14981E-03   -1.5417    
   4  norm          1.4864        1.4553        .80342E-04   -1.5464    
   5  Prefactor     .10000E-03    8.5578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .14187        72.097        .34688E-02   -1.5633    
   7  Prefactor     5.9967        2.9393        .78221E-04   -1.5218    
   8  Prefactor     .10000E-03    3.3767        .24741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    61.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.258        36.199        .83033E-04   -1.4743    
  13  Prefactor     21.638        9.8500        .86114E-04   -1.4777    
  14  Prefactor     4.2316        7.6914        .97955E-03   -1.5297    
  15  Prefactor     .34954        2.6414        .16972E-02   -1.5590    
  16  norm          .10000E-03    7.6555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.021        .19361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0618        85.307        .17895E-03   -1.5258    
  19  Prefactor     .71185        6.2235        .24279E-02   -1.5539    
  20  norm          7.4346        11.840        .14711E-03   -1.5163    
  21  Prefactor     .10000E-03    58.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.988        .19422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5399        2.3449        .12992E-03   -1.5460    
  25  Prefactor     .10000E-03    10.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.5146        19.627        .15708E-03   -1.5197    
  27  Normalizat    .67695        .21275        .25591E-03   -1.0481    
  28  Prefactor     1.2400        .23922        .23382E-03   -.85109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42531e-08
Minuit parameter uncertainties:
  1  7.62542e-07
  2  0.00045124
  3  3.28143
  4  1.45534
  5  1.0081e-05
  6  6.40177
  7  2.93939
  8  4.79225e-06
  9  5.00879e-05
  10  6.92704e-05
  11  0.000784513
  12  36.2336
  13  9.85071
  14  7.69322
  15  1.92157
  16  9.93588e-06
  17  0.000189943
  18  41.6297
  19  4.2099
  20  11.8436
  21  0.000397699
  22  8.27338e-05
  23  6.75348e-06
  24  2.34503
  25  7.03694e-05
  26  19.6467
  27  0.21301
  28  0.239426
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  4.232e+00  7.693e+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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.240e+00  2.394e-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:  6.770e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/611864/likelihoodResults_600134401_600393601_4FGL_J0957.8+3423_daily_bin1392.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) = 4879.75833862
delta logL = 0.0370324701944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4879.75699028
delta logL = 0.0383808080514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7510       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8843       1.0000          .0000       10.000    
     3 'Normalizat'    .68116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2356       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4879.757     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      300 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7510        10.532        .83743E-03   -.13220E-03
   2  Index         1.8843        .92727        .10594E-01    .85961E-04
   3  Normalizat    .68119        .19398        .25514E-03   -.71293E-06
   4  Prefactor     1.2356        .23441        .23415E-03   -.33501E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.75101
  Index      = 1.88434
  Normalizat = 0.681187
  Prefactor  = 1.2356
 **********
 **   18 **HESSE 
 **********

 FCN=   4879.757     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7510        10.290        .33497E-04   -1.5228    
   2  Index         1.8843        .90652        .42377E-03   -.67274    
   3  Normalizat    .68119        .19410        .10206E-04   -1.0464    
   4  Prefactor     1.2356        .23456        .93661E-05   -.85243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85341e-10
Minuit parameter uncertainties:
  1  10.2933
  2  0.914842
  3  0.194293
  4  0.234755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611864': 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) = 4879.75699027
delta logL = 0.0383808181114

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  5.751e+00  1.029e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.884e+00  9.148e-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.236e+00  2.348e-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:  6.812e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/611864/cmap_HighResolution_600134401_600393601_4FGL_J0957.8+3423_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-01 07:45:43.202555', job_id='611864', GAL2='1.24', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630507543.2', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.84e-02', ts2='0.53', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1392' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 611864: <4FGL_J0957.8+3423_daily_bin1392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1392 149.471 34.3975 600134401 600393601 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 :                                   699.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

