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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1338
RA = 149.471, Dec = 34.3975
tmin = 586137601, tmax = 586396801
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='611784', job_status='RUN', time_executed='2021-09-01 07:32:52.612874', time_epoch_executed='1630506772.61' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611784

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611784/ft1_4FGL_J0957.8+3423_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611784/ft2_4FGL_J0957.8+3423_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611784/ft1_4FGL_J0957.8+3423_daily_bin1338.fits outfile=/scratch/kocevski/611784/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1338.fits ra=149.471 dec=34.3975 rad=12.0 tmin=586137601.0 tmax=586396801.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.74
user 4.31
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611784/ft1_filtered_4FGL_J0957.8+3423_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/611784/ft2_4FGL_J0957.8+3423_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/611784/ltcube_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.fits outfile=/scratch/kocevski/611784/expmap_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.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/611784/ltcube_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.fits
.....................!
real 192.98
user 184.82
sys 3.96

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/611784/ft1_filtered_4FGL_J0957.8+3423_daily_bin1338.fits scfile=/scratch/kocevski/611784/ft2_4FGL_J0957.8+3423_daily_bin1338.fits outfile=/scratch/kocevski/611784/cmap_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.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 1.05
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611784/ft1_filtered_4FGL_J0957.8+3423_daily_bin1338.fits scfile=/scratch/kocevski/611784/ft2_4FGL_J0957.8+3423_daily_bin1338.fits outfile=/scratch/kocevski/611784/cmap_HighResolution_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.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.87
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/611784/ft1_filtered_4FGL_J0957.8+3423_daily_bin1338.fits', '/scratch/kocevski/611784/ft2_4FGL_J0957.8+3423_daily_bin1338.fits', expMap='/scratch/kocevski/611784/expmap_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.fits', expCube='/scratch/kocevski/611784/ltcube_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/611784/Model_4FGL_J0957.8+3423_daily_bin1338.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/611784/ft1_filtered_4FGL_J0957.8+3423_daily_bin1338.fits
Spacecraft file(s): /scratch/kocevski/611784/ft2_4FGL_J0957.8+3423_daily_bin1338.fits
Exposure map: /scratch/kocevski/611784/expmap_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.fits
Exposure cube: /scratch/kocevski/611784/ltcube_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/611784/Model_4FGL_J0957.8+3423_daily_bin1338.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5140.92731628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86315       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.761       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12767E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .56312E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11336E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36075       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.596       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11766E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4166       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41648       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.560       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.6283       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18903E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1663       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1566       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=   5140.811     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3042 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86389        3.1686        .12205E-05   -.97624E-04
   2  Prefactor     32.766        28.157        .28329E-07    .24876E-04
   3  Prefactor     .10000E-03    2.0698       -.98648E-07** at limit **
   4  norm          .10000E-03    1.1587        .57064E-07** at limit **
   5  Prefactor     .10000E-03    10.768        .91762E-07** at limit **
   6  norm          1.7637        6.4121        .13395E-05   -.12642E-04
   7  Prefactor     .35777        2.3592        .29288E-06   -.28488E-03
   8  Prefactor     11.594        6.2623        .32193E-06    .19323E-03
   9  norm          3.4081        11.954        .97898E-05   -.24681E-03
  10  Prefactor     .10004E-03    71.455        .46302E-05** at limit **
  11  Prefactor     .10000E-03    14.345       -.21120E-05** at limit **
  12  Prefactor     3.4042        97.816       -.52679E-05   -.47960E-04
  13  Prefactor     18.830        12.086        .25632E-06   -.18342E-03
  14  Prefactor     6.7688        9.1719        .19607E-06   -.39498E-04
  15  Prefactor     .41629        2.1398        .12992E-05   -.13730E-03
  16  norm          .10000E-03    5.9090       -.13789E-06** at limit **
  17  Prefactor     .10000E-03    2.0838        .20306E-07** at limit **
  18  Prefactor     10.564        31.615        .83827E-06   -.94028E-05
  19  Prefactor     .10000E-03    3.0754        .25164E-07** at limit **
  20  norm          9.6316        8.8434        .98078E-07   -.13574E-03
  21  Prefactor     .10005E-03    112.61       -.48331E-05** at limit **
  22  Prefactor     .10000E-03    37.354       -.87906E-06** at limit **
  23  Prefactor     .10000E-03    2.9737        .82984E-06** at limit **
  24  Prefactor     .10000E-03    4.7651       -.14674E-07** at limit **
  25  Prefactor     .10000E-03    15.964        .17834E-06** at limit **
  26  Prefactor     .10000E-03    17.023        .25288E-06** at limit **
  27  Normalizat    1.1661        .20721       -.30886E-06   -.23046E-03
  28  Prefactor     1.1567        .23355       -.14785E-05   -.12491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.863893
  Prefactor  = 32.7663
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.76375
  Prefactor  = 0.357773
  Prefactor  = 11.5935
  norm       = 3.40815
  Prefactor  = 0.000100037
  Prefactor  = 0.000100003
  Prefactor  = 3.40421
  Prefactor  = 18.8302
  Prefactor  = 6.76877
  Prefactor  = 0.416291
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5639
  Prefactor  = 0.0001
  norm       = 9.63156
  Prefactor  = 0.000100054
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16613
  Prefactor  = 1.15667
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.811     FROM HESSE     STATUS=OK           531 CALLS     3573 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86389        3.1292        .23636E-03   -1.5522    
   2  Prefactor     32.766        28.134        .70008E-04   -1.4563    
   3  Prefactor     .10000E-03    3.3297        .19215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7979        .28730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7637        6.3230        .31499E-03   -1.5442    
   7  Prefactor     .35777        4.2090        .19339E-02   -1.5588    
   8  Prefactor     11.594        6.2626        .11764E-03   -1.5027    
   9  norm          3.4081        12.012        .10955E-02   -1.5339    
  10  Prefactor     .10004E-03    73.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4042        98.257        .21885E-03   -1.5339    
  13  Prefactor     18.830        12.069        .92272E-04   -1.4840    
  14  Prefactor     6.7688        9.1710        .15422E-03   -1.5188    
  15  Prefactor     .41629        2.0896        .20078E-03   -1.5579    
  16  norm          .10000E-03    5.9290        .17021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1043        .10103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.564        31.670        .12330E-03   -1.5058    
  19  Prefactor     .10000E-03    3.1525        .24543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.6316        8.8035        .12915E-03   -1.5087    
  21  Prefactor     .10005E-03    115.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.9240        .23676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.9378        .30549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1661        .25340        .24212E-03   -.87656    
  28  Prefactor     1.1567        .28493        .28747E-03   -.87675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30622e-08
Minuit parameter uncertainties:
  1  3.12976
  2  28.1457
  3  2.19522e-06
  4  0.000160794
  5  1.98611e-05
  6  6.32534
  7  2.45415
  8  6.26293
  9  12.0202
  10  0.00327933
  11  0.000389915
  12  36.6439
  13  12.0703
  14  9.17292
  15  1.86521
  16  2.66768e-05
  17  3.67575e-06
  18  31.7203
  19  5.20605e-06
  20  8.80465
  21  0.00499374
  22  0.000485706
  23  0.000150447
  24  1.34866e-05
  25  6.31782e-05
  26  0.00010045
  27  0.253667
  28  0.285305
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  6.769e+00  9.173e+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.157e+00  2.853e-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.166e+00  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/611784/likelihoodResults_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.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) = 5140.75860227
delta logL = 0.0519018908126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5140.75729309
delta logL = 0.0532110677341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1968       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4349       1.0000          .0000       10.000    
     3 'Normalizat'    1.1598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1608       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5140.757     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      301 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1962        9.7796        .17634E-03    .41745E-03
   2  Index         2.4347        .93097        .82900E-02    .94443E-04
   3  Normalizat    1.1598        .23804        .24269E-03   -.16618E-03
   4  Prefactor     1.1609        .28095        .28700E-03   -.14831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19623
  Index      = 2.43471
  Normalizat = 1.15976
  Prefactor  = 1.16087
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.757     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1962        8.8897        .70535E-05   -1.5252    
   2  Index         2.4347        .84723        .33160E-03   -.53874    
   3  Normalizat    1.1598        .23820        .48539E-04   -.87855    
   4  Prefactor     1.1609        .28113        .11480E-04   -.87544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33781e-10
Minuit parameter uncertainties:
  1  8.89197
  2  0.852828
  3  0.238421
  4  0.28149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611784': 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) = 5140.75729302
delta logL = 0.0532111394687

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  5.196e+00  8.892e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.435e+00  8.528e-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.161e+00  2.815e-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.160e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
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/611784/cmap_HighResolution_586137601_586396801_4FGL_J0957.8+3423_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-01 07:44:45.275397', job_id='611784', GAL2='1.16', fit_tolerance='1e-08', EG2='1.16', EG='1.17', time_epoch_completed='1630507485.28', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.32e-02', ts2='0.90', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1338' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 611784: <4FGL_J0957.8+3423_daily_bin1338> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1338 149.471 34.3975 586137601 586396801 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 :                                   685.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

