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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin150
RA = 149.471, Dec = 34.3975
tmin = 278208001, tmax = 278467201
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='604414', job_status='RUN', time_executed='2021-09-01 07:13:54.155894', time_epoch_executed='1630505634.16' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604414/ft1_4FGL_J0957.8+3423_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604414/ft2_4FGL_J0957.8+3423_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604414/ft1_4FGL_J0957.8+3423_daily_bin150.fits outfile=/scratch/kocevski/604414/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin150.fits ra=149.471 dec=34.3975 rad=12.0 tmin=278208001.0 tmax=278467201.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 5.57
user 5.21
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604414/ft1_filtered_4FGL_J0957.8+3423_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/604414/ft2_4FGL_J0957.8+3423_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/604414/ltcube_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.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/604414/ft2_4FGL_J0957.8+3423_daily_bin150.fits
.....................!
real 13.42
user 13.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604414/ft1_filtered_4FGL_J0957.8+3423_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/604414/ft2_4FGL_J0957.8+3423_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/604414/ltcube_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.fits outfile=/scratch/kocevski/604414/expmap_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.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/604414/ltcube_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.fits
.....................!
real 190.92
user 184.93
sys 5.23

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/604414/ft1_filtered_4FGL_J0957.8+3423_daily_bin150.fits scfile=/scratch/kocevski/604414/ft2_4FGL_J0957.8+3423_daily_bin150.fits outfile=/scratch/kocevski/604414/cmap_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604414/ft1_filtered_4FGL_J0957.8+3423_daily_bin150.fits scfile=/scratch/kocevski/604414/ft2_4FGL_J0957.8+3423_daily_bin150.fits outfile=/scratch/kocevski/604414/cmap_HighResolution_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6274       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5449       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .73559E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.1758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11963E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54091E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.264       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9619       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .24094E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.235       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0498       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77398       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=   5109.751     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3565 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6283        4.4439       -.23653E-06   -.52016E-03
   2  Prefactor     .10000E-03    10.709       -.39798E-05** at limit **
   3  Prefactor     .10000E-03    1.3439        .41389E-07** at limit **
   4  norm          1.5448        1.3471        .27810E-07    .12237E-03
   5  Prefactor     .10000E-03    6.9679       -.48547E-06** at limit **
   6  norm          .15749E-03    7.3912       -.38623E-06** at limit **
   7  Prefactor     2.1704        1.8226       -.10500E-06   -.17422E-03
   8  Prefactor     .10000E-03    1.4310        .10654E-07** at limit **
   9  norm          6.1808        12.388        .21109E-04   -.30930E-04
  10  Prefactor     .10000E-03    5.6330       -.72126E-06** at limit **
  11  Prefactor     .10001E-03    21.832        .99513E-07** at limit **
  12  Prefactor     44.870        32.872       -.41471E-05   -.15443E-04
  13  Prefactor     11.515        6.1279        .37678E-06   -.64149E-04
  14  Prefactor     .10000E-03    5.0771        .74679E-06** at limit **
  15  Prefactor     .10000E-03    .54069       -.73948E-07** at limit **
  16  norm          16.447        8.4002       -.38164E-06   -.17976E-04
  17  Prefactor     .10000E-03    1.3341        .14979E-07** at limit **
  18  Prefactor     .10000E-03    9.7162        .61544E-05** at limit **
  19  Prefactor     .10000E-03    2.2444       -.10181E-08** at limit **
  20  norm          .10000E-03    4.2250        .17022E-07** at limit **
  21  Prefactor     .10000E-03    161.06        .40674E-04** at limit **
  22  Prefactor     11.262        25.531        .31709E-05   -.77535E-04
  23  Prefactor     7.9596        4.8209       -.68234E-06   -.30926E-02
  24  Prefactor     .10000E-03    6.6980        .15828E-05** at limit **
  25  Prefactor     17.233        33.457       -.26471E-05   -.31649E-04
  26  Prefactor     .10000E-03    8.2207       -.36054E-05** at limit **
  27  Normalizat    1.0501        .16330        .51872E-06   -.25703E-03
  28  Prefactor     .77371        .18858       -.14860E-05   -.10268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54484
  Prefactor  = 0.0001
  norm       = 0.000157487
  Prefactor  = 2.17037
  Prefactor  = 0.0001
  norm       = 6.18076
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 44.8702
  Prefactor  = 11.5154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.2619
  Prefactor  = 7.95964
  Prefactor  = 0.0001
  Prefactor  = 17.2328
  Prefactor  = 0.0001
  Normalizat = 1.05009
  Prefactor  = 0.77371
 **********
 **   18 **HESSE 
 **********

 FCN=   5109.751     FROM HESSE     STATUS=OK           529 CALLS     4094 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6283        4.4347        .18594E-03   -1.5384    
   2  Prefactor     .10000E-03    10.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1122        .16076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5448        1.3587        .75379E-04   -1.5459    
   5  Prefactor     .10000E-03    6.9766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .15749E-03    9.8154        .52016E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1704        1.8099        .84635E-04   -1.5413    
   8  Prefactor     .10000E-03    1.4435        .83472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.1808        12.256        .16154E-03   -1.5211    
  10  Prefactor     .10000E-03    5.6343        .16570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    21.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.870        32.957        .59859E-04   -1.4367    
  13  Prefactor     11.515        6.1257        .11805E-03   -1.5029    
  14  Prefactor     .10000E-03    5.1047        .15727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .54302        .51321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.447        8.3999        .98755E-04   -1.4897    
  17  Prefactor     .10000E-03    1.3495        .80484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5415        .20648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2453        .14344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    163.72        .21118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.262        25.272        .11937E-03   -1.5037    
  23  Prefactor     7.9596        4.9003        .57762E-03   -1.5144    
  24  Prefactor     .10000E-03    6.8378        .35698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.233        33.369        .96474E-04   -1.4877    
  26  Prefactor     .10000E-03    8.2243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0501        .19133        .20455E-03   -.91371    
  28  Prefactor     .77371        .22034        .27942E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27532e-09
Minuit parameter uncertainties:
  1  4.43529
  2  1.92088e-06
  3  5.34637e-06
  4  1.35872
  5  4.21625e-06
  6  0.0475159
  7  1.80997
  8  8.53316e-07
  9  12.2609
  10  1.34799e-07
  11  0.000698851
  12  32.9709
  13  6.12598
  14  3.0947e-06
  15  1.75258e-07
  16  8.40046
  17  5.66461e-07
  18  9.64566e-06
  19  9.66768e-06
  20  1.09229e-05
  21  0.00103481
  22  25.2964
  23  4.90058
  24  6.36912e-05
  25  33.4051
  26  1.36796e-06
  27  0.191451
  28  0.220594
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.095e-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:  7.737e-01  2.206e-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.050e+00  1.915e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604414/likelihoodResults_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.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) = 5109.75218481
delta logL = -0.000932886614464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5109.75125193
delta logL = 9.91349224932e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1573       1.0000          .0000       10.000    
     3 'Normalizat'    1.0501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77372       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=   5109.751     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10052E-03    166.80        .15758E-02** at limit **
   2  Index         2.0939        5.9987        .50000        .73480E-05
   3  Normalizat    1.0501        .23524E-01    .20455E-03   -.25344E-04
   4  Prefactor     .77371        .28096E-01    .27942E-03   -.10985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100524
  Index      = 2.09391
  Normalizat = 1.05009
  Prefactor  = 0.773709
 **********
 **   18 **HESSE 
 **********

 FCN=   5109.751     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10052E-03    735.15        .31516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0939        5.7063        .50000       -.62022    
   3  Normalizat    1.0501        .61951E-01    .81820E-05   -.91371    
   4  Prefactor     .77371        .73078E-01    .11177E-04   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.13708e-08
Minuit parameter uncertainties:
  1  0.0397624
  2  2123.58
  3  0.0619556
  4  0.073087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604414': 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) = 5109.75125182
delta logL = 1.08625499706e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.005e-04  3.976e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.094e+00  2.124e+03  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:  7.737e-01  7.309e-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:  1.050e+00  6.196e-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/604414/cmap_HighResolution_278208001_278467201_4FGL_J0957.8+3423_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-01 07:26:22.419735', job_id='604414', GAL2='0.77', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630506382.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='150' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:26:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 604414: <4FGL_J0957.8+3423_daily_bin150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin150 149.471 34.3975 278208001 278467201 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 :                                   739.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

