/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 58 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 = 7399
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0957.8+3423_daily_bin58
RA = 149.471, Dec = 34.3975
tmin = 254361601, tmax = 254620801
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='604277', job_status='RUN', time_executed='2021-09-01 07:12:40.475583', time_epoch_executed='1630505560.48' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604277/ft1_4FGL_J0957.8+3423_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604277/ft2_4FGL_J0957.8+3423_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604277/ft1_4FGL_J0957.8+3423_daily_bin58.fits outfile=/scratch/kocevski/604277/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin58.fits ra=149.471 dec=34.3975 rad=12.0 tmin=254361601.0 tmax=254620801.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 1.94
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604277/ft1_filtered_4FGL_J0957.8+3423_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/604277/ft2_4FGL_J0957.8+3423_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/604277/ltcube_254361601_254620801_4FGL_J0957.8+3423_daily_bin58.fits outfile=/scratch/kocevski/604277/expmap_254361601_254620801_4FGL_J0957.8+3423_daily_bin58.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/604277/ltcube_254361601_254620801_4FGL_J0957.8+3423_daily_bin58.fits
.....................!
real 193.10
user 185.52
sys 4.52

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/604277/ft1_filtered_4FGL_J0957.8+3423_daily_bin58.fits scfile=/scratch/kocevski/604277/ft2_4FGL_J0957.8+3423_daily_bin58.fits outfile=/scratch/kocevski/604277/cmap_254361601_254620801_4FGL_J0957.8+3423_daily_bin58.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.52
user 0.36
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13149E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.377       1.0000         .10000E-03   10000.    
     9 'norm      '    .37787E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.162       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4954       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3339       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .54502       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=   4448.110     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3005 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7886        .99796E-07** at limit **
   2  Prefactor     .10000E-03    141.05       -.61518E-05** at limit **
   3  Prefactor     .10000E-03    1.6669        .20904E-08** at limit **
   4  norm          .10000E-03    .90896       -.17160E-07** at limit **
   5  Prefactor     .10000E-03    10.910       -.46906E-05** at limit **
   6  norm          16.540        10.656       -.14356E-06    .20841E-04
   7  Prefactor     .10000E-03    2.8196        .15326E-07** at limit **
   8  Prefactor     10.376        4.8369        .42828E-06   -.54244E-04
   9  norm          .10051E-03    12.632        .11072E-05** at limit **
  10  Prefactor     24.159        25.876        .71661E-07   -.54543E-05
  11  Prefactor     .10000E-03    13.387        .60153E-05** at limit **
  12  Prefactor     .10000E-03    12.340       -.28624E-05** at limit **
  13  Prefactor     24.753        9.7020       -.23205E-07    .41113E-04
  14  Prefactor     .10000E-03    9.7813        .38768E-05** at limit **
  15  Prefactor     3.4955        2.4978        .33335E-08   -.66213E-04
  16  norm          .10000E-03    7.6568       -.31831E-05** at limit **
  17  Prefactor     .10000E-03    2.1876       -.10106E-07** at limit **
  18  Prefactor     .10000E-03    36.383        .85789E-05** at limit **
  19  Prefactor     .10000E-03    2.8292       -.34444E-07** at limit **
  20  norm          .10000E-03    7.8056        .29858E-05** at limit **
  21  Prefactor     .10000E-03    19.674       -.87065E-05** at limit **
  22  Prefactor     .10000E-03    12.477       -.19156E-05** at limit **
  23  Prefactor     .10000E-03    3.4101       -.11656E-07** at limit **
  24  Prefactor     .10000E-03    1.9874       -.15068E-07** at limit **
  25  Prefactor     .10000E-03    35.239       -.62817E-05** at limit **
  26  Prefactor     .10000E-03    18.184        .70930E-05** at limit **
  27  Normalizat    1.3338        .19667       -.41559E-07   -.10091E-03
  28  Prefactor     .54510        .21977       -.33020E-06   -.81611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.5405
  Prefactor  = 0.0001
  Prefactor  = 10.3764
  norm       = 0.000100513
  Prefactor  = 24.1591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7527
  Prefactor  = 0.0001
  Prefactor  = 3.4955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33385
  Prefactor  = 0.545104
 **********
 **   18 **HESSE 
 **********

 FCN=   4448.110     FROM HESSE     STATUS=OK           511 CALLS     3516 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5007        .21592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    144.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6776        .84057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .94124        .12409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.540        10.639        .98471E-04   -1.4894    
   7  Prefactor     .10000E-03    2.9216        .21791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.376        4.8351        .96016E-04   -1.5064    
   9  norm          .10051E-03    168.67        .45836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.159        25.864        .81492E-04   -1.4725    
  11  Prefactor     .10000E-03    13.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.753        9.6899        .80517E-04   -1.4713    
  14  Prefactor     .10000E-03    10.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4955        2.4944        .85589E-04   -1.5334    
  16  norm          .10000E-03    7.7167        .18003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2105        .96211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1552        .21613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.8833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4531        .12021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.9921        .91805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3338        .21845        .19919E-03   -.82562    
  28  Prefactor     .54510        .24340        .33875E-03   -1.0995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79363e-09
Minuit parameter uncertainties:
  1  1.78843e-05
  2  0.000337117
  3  1.23085e-06
  4  1.82955e-06
  5  7.83923e-06
  6  10.6399
  7  3.60534e-06
  8  4.83529
  9  0.0186587
  10  25.8765
  11  4.57878e-06
  12  3.39415e-06
  13  9.69053
  14  3.16147e-05
  15  2.49448
  16  1.18671e-05
  17  1.77858e-07
  18  2.657e-05
  19  9.77189e-06
  20  9.21415e-06
  21  1.9987e-06
  22  6.28505e-07
  23  5.08547e-08
  24  2.77294e-07
  25  9.41626e-06
  26  3.31118e-06
  27  0.218604
  28  0.243872
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.161e-05  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:  5.451e-01  2.439e-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.334e+00  2.186e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604277/likelihoodResults_254361601_254620801_4FGL_J0957.8+3423_daily_bin58.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) = 4448.11091929
delta logL = -0.000475895171803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4448.11044301
delta logL = 3.91265530197e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1115       1.0000          .0000       10.000    
     3 'Normalizat'    1.3338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54513       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=   4448.110     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      250 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    28.684        .36285E-02** at limit **
   2  Index         2.0449        7.9962        .50000        .24940E-04
   3  Normalizat    1.3338        .70578E-02    .19919E-03   -.52836E-03
   4  Prefactor     .54511        .80247E-02    .33875E-03   -.11387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101503
  Index      = 2.04495
  Normalizat = 1.33384
  Prefactor  = 0.545109
 **********
 **   18 **HESSE 
 **********

 FCN=   4448.110     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10150E-03    136.95        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0449        8.9774        .50000       -.63231    
   3  Normalizat    1.3338        .15554E-01    .39837E-04   -.82562    
   4  Prefactor     .54511        .17684E-01    .13550E-04   -1.0995    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85415e-09
Minuit parameter uncertainties:
  1  0.0287591
  2  193.898
  3  0.0155541
  4  0.0176847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604277': 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) = 4448.11044249
delta logL = 9.14156771614e-07

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.015e-04  2.876e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.045e+00  1.939e+02  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:  5.451e-01  1.768e-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.334e+00  1.555e-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/604277/cmap_HighResolution_254361601_254620801_4FGL_J0957.8+3423_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-01 07:23:19.255946', job_id='604277', GAL2='0.55', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630506199.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='9.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='58' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:23:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 604277: <4FGL_J0957.8+3423_daily_bin58> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin58 149.471 34.3975 254361601 254620801 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 :                                   629.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            756 sec.

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

