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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin161
RA = 149.471, Dec = 34.3975
tmin = 281059201, tmax = 281318401
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='604425', job_status='RUN', time_executed='2021-09-01 07:13:02.808792', time_epoch_executed='1630505582.81' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604425/ft1_4FGL_J0957.8+3423_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604425/ft2_4FGL_J0957.8+3423_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604425/ft1_4FGL_J0957.8+3423_daily_bin161.fits outfile=/scratch/kocevski/604425/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin161.fits ra=149.471 dec=34.3975 rad=12.0 tmin=281059201.0 tmax=281318401.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.22
user 4.22
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604425/ft1_filtered_4FGL_J0957.8+3423_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/604425/ft2_4FGL_J0957.8+3423_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/604425/ltcube_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.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/604425/ft2_4FGL_J0957.8+3423_daily_bin161.fits
.....................!
real 14.79
user 13.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604425/ft1_filtered_4FGL_J0957.8+3423_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/604425/ft2_4FGL_J0957.8+3423_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/604425/ltcube_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.fits outfile=/scratch/kocevski/604425/expmap_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.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/604425/ltcube_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.fits
.....................!
real 196.16
user 186.26
sys 4.67

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/604425/ft1_filtered_4FGL_J0957.8+3423_daily_bin161.fits scfile=/scratch/kocevski/604425/ft2_4FGL_J0957.8+3423_daily_bin161.fits outfile=/scratch/kocevski/604425/cmap_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=149.471 yref=34.3975 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604425/ft1_filtered_4FGL_J0957.8+3423_daily_bin161.fits scfile=/scratch/kocevski/604425/ft2_4FGL_J0957.8+3423_daily_bin161.fits outfile=/scratch/kocevski/604425/cmap_HighResolution_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23427E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1163       1.0000         .10000E-03   10000.    
     4 'norm      '    .85646       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.528       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9260       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.333       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27224       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7622       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .80304E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4970       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2412       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6370       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.527       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1334       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .51779       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=   5003.555     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3557 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10356E-03    1.6271        .99712E-06** at limit **
   2  Prefactor     .10000E-03    24.621       -.95127E-05** at limit **
   3  Prefactor     4.1162        3.2978        .74674E-06   -.11420E-03
   4  norm          .85629        1.5486       -.32792E-06   -.11841E-02
   5  Prefactor     13.530        15.122       -.58879E-06    .16661E-04
   6  norm          .10000E-03    3.5703       -.10222E-06** at limit **
   7  Prefactor     2.3689        1.7344       -.18139E-06   -.76067E-04
   8  Prefactor     2.9261        2.5724       -.12356E-07    .39755E-04
   9  norm          .10000E-03    7.9055        .51290E-07** at limit **
  10  Prefactor     19.693        25.683       -.11842E-06    .38580E-04
  11  Prefactor     .10000E-03    13.948       -.28707E-05** at limit **
  12  Prefactor     7.1789        21.794       -.14114E-05   -.16468E-05
  13  Prefactor     7.7420        6.9934       -.62429E-06   -.17622E-04
  14  Prefactor     11.333        8.6828       -.18049E-06    .17314E-04
  15  Prefactor     .27156        1.4149       -.88049E-06    .34833E-03
  16  norm          .10000E-03    5.5482       -.15987E-06** at limit **
  17  Prefactor     .10000E-03    2.6168       -.51517E-07** at limit **
  18  Prefactor     .10000E-03    69.432       -.10030E-04** at limit **
  19  Prefactor     .10000E-03    2.1057       -.36736E-07** at limit **
  20  norm          1.7604        7.5654       -.21238E-05   -.43822E-03
  21  Prefactor     .10000E-03    16.867        .65486E-05** at limit **
  22  Prefactor     .10000E-03    102.75       -.14204E-04** at limit **
  23  Prefactor     5.4971        3.2242        .49663E-06    .28195E-03
  24  Prefactor     1.2398        3.8794        .46433E-06   -.27327E-03
  25  Prefactor     2.6281        63.293       -.13118E-04   -.86187E-05
  26  Prefactor     14.520        29.589       -.76876E-05   -.10271E-05
  27  Normalizat    1.1333        .16133        .89750E-06    .28597E-03
  28  Prefactor     .51787        .18392        .10936E-05    .15014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103559
  Prefactor  = 0.0001
  Prefactor  = 4.1162
  norm       = 0.856287
  Prefactor  = 13.5301
  norm       = 0.0001
  Prefactor  = 2.36885
  Prefactor  = 2.92607
  norm       = 0.0001
  Prefactor  = 19.6926
  Prefactor  = 0.0001
  Prefactor  = 7.17888
  Prefactor  = 7.74203
  Prefactor  = 11.3326
  Prefactor  = 0.271556
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76042
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.49709
  Prefactor  = 1.2398
  Prefactor  = 2.62815
  Prefactor  = 14.5199
  Normalizat = 1.13333
  Prefactor  = 0.517869
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.555     FROM HESSE     STATUS=OK           537 CALLS     4094 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10356E-03    2.8129        .32678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1162        3.2730        .10731E-03   -1.5302    
   4  norm          .85629        1.3780        .11518E-02   -1.5523    
   5  Prefactor     13.530        15.097        .10890E-03   -1.4972    
   6  norm          .10000E-03    3.5919        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3689        1.7279        .75853E-04   -1.5400    
   8  Prefactor     2.9261        2.5723        .10242E-03   -1.5366    
   9  norm          .10000E-03    7.9338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.693        25.659        .90259E-04   -1.4820    
  11  Prefactor     .10000E-03    13.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1789        21.804        .14969E-03   -1.5172    
  13  Prefactor     7.7420        6.9957        .14410E-03   -1.5151    
  14  Prefactor     11.333        8.6939        .11900E-03   -1.5035    
  15  Prefactor     .27156        4.4332        .15616E-02   -1.5604    
  16  norm          .10000E-03    5.6042        .16268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7003        .22311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    70.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1295        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7604        7.8796        .31562E-03   -1.5443    
  21  Prefactor     .10000E-03    16.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    101.85        .41800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4971        3.2302        .93074E-04   -1.5239    
  24  Prefactor     1.2398        3.7603        .22725E-03   -1.5485    
  25  Prefactor     2.6281        62.201        .25109E-03   -1.5384    
  26  Prefactor     14.520        29.685        .10509E-03   -1.4946    
  27  Normalizat    1.1333        .18524        .18649E-03   -.88689    
  28  Prefactor     .51787        .20866        .31071E-03   -1.1116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08698e-09
Minuit parameter uncertainties:
  1  0.00632842
  2  1.90994e-05
  3  3.27313
  4  1.37801
  5  15.1016
  6  4.40208e-06
  7  1.72795
  8  2.57238
  9  1.56037e-06
  10  25.6734
  11  4.7482e-06
  12  21.8277
  13  6.99642
  14  8.69485
  15  2.19421
  16  4.38006e-06
  17  4.25229e-06
  18  0.000237058
  19  5.88176e-07
  20  7.45029
  21  1.29144e-06
  22  0.00100491
  23  3.23029
  24  3.76105
  25  25.6008
  26  29.7155
  27  0.185346
  28  0.208971
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.133e+01  8.695e+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:  5.179e-01  2.090e-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.133e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/604425/likelihoodResults_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.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) = 5003.51584202
delta logL = 0.039191662001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5003.51443239
delta logL = 0.0406012934982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1460       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3521       1.0000          .0000       10.000    
     3 'Normalizat'    1.1255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5003.514     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      256 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1460        182.29        .33131E-02    .76046E-03
   2  Index         2.3523        6.1757        .11807        .10323E-03
   3  Normalizat    1.1253        .73052E-01    .37047E-01    .29586E-05
   4  Prefactor     .52462        .72261E-01    .69779E-01    .30539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14604
  Index      = 2.35228
  Normalizat = 1.12532
  Prefactor  = 0.524618
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.514     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1460        12.009        .13252E-03   -1.5103    
   2  Index         2.3523        .76049        .58032E-02   -.55806    
   3  Normalizat    1.1253        .18058        .18706E-03   -.88943    
   4  Prefactor     .52462        .20823        .30889E-03   -1.1086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16556e-09
Minuit parameter uncertainties:
  1  12.0119
  2  0.764623
  3  0.180677
  4  0.208531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604425': 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) = 5003.51443192
delta logL = 0.0406017656996

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  9.146e+00  1.201e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.352e+00  7.646e-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:  5.246e-01  2.085e-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.125e+00  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.35 +/- 0.76
Photon Flux (Free Index): 3.75e-08 +/- 3.18e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.33e-05

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/604425/cmap_HighResolution_281059201_281318401_4FGL_J0957.8+3423_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='1.31e-05', photon_flux_error='2.50e-08', dlogl='4.06e-02', energy_flux='1.56e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-01 07:25:24.171269', photon_index_error2='0.76', photon_index2='2.35', ts='2.74', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='8.87e-08', energy_flux_error2='1.33e-05', EG='1.13', time_epoch_completed='1630506324.17', return_code='0', job_id='604425', GAL2='0.52', EG2='1.13', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.18e-08', ts2='2.82', photon_index='2.16' WHERE bin_id='161' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 604425: <4FGL_J0957.8+3423_daily_bin161> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin161 149.471 34.3975 281059201 281318401 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 :                                   727.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

