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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin53
RA = 149.471, Dec = 34.3975
tmin = 253065601, tmax = 253324801
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='604269', job_status='RUN', time_executed='2021-09-01 07:12:52.001816', time_epoch_executed='1630505572.0' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604269/ft1_4FGL_J0957.8+3423_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604269/ft2_4FGL_J0957.8+3423_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604269/ft1_4FGL_J0957.8+3423_daily_bin53.fits outfile=/scratch/kocevski/604269/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin53.fits ra=149.471 dec=34.3975 rad=12.0 tmin=253065601.0 tmax=253324801.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 2.74
user 1.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604269/ft1_filtered_4FGL_J0957.8+3423_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/604269/ft2_4FGL_J0957.8+3423_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/604269/ltcube_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.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/604269/ft2_4FGL_J0957.8+3423_daily_bin53.fits
.....................!
real 12.97
user 12.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604269/ft1_filtered_4FGL_J0957.8+3423_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/604269/ft2_4FGL_J0957.8+3423_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/604269/ltcube_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.fits outfile=/scratch/kocevski/604269/expmap_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.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/604269/ltcube_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.fits
.....................!
real 194.25
user 185.76
sys 4.84

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/604269/ft1_filtered_4FGL_J0957.8+3423_daily_bin53.fits scfile=/scratch/kocevski/604269/ft2_4FGL_J0957.8+3423_daily_bin53.fits outfile=/scratch/kocevski/604269/cmap_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604269/ft1_filtered_4FGL_J0957.8+3423_daily_bin53.fits scfile=/scratch/kocevski/604269/ft2_4FGL_J0957.8+3423_daily_bin53.fits outfile=/scratch/kocevski/604269/cmap_HighResolution_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3354       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.853       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0900       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4880       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15668E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1200       1.0000         .10000E-03   10000.    
    16 'norm      '    8.5031       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13912E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.376       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2505       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0647       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.629       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74821       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0072       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=   6541.623     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3577 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0434        3.3680       -.22161E-06   -.34946E-03
   2  Prefactor     .10000E-03    23.819        .64661E-06** at limit **
   3  Prefactor     2.3354        3.3315        .13681E-06   -.19335E-03
   4  norm          1.4306        1.6534        .43319E-07   -.18660E-03
   5  Prefactor     41.859        27.731       -.17357E-05   -.58552E-04
   6  norm          1.0878        15.693        .46694E-05   -.27528E-03
   7  Prefactor     2.1915        2.1563       -.91626E-07   -.22912E-03
   8  Prefactor     5.4879        3.3552        .50165E-07    .11834E-03
   9  norm          .10000E-03    4.4742       -.53738E-07** at limit **
  10  Prefactor     .10000E-03    11.170       -.15221E-05** at limit **
  11  Prefactor     .10000E-03    78.019       -.23456E-06** at limit **
  12  Prefactor     62.362        37.211       -.34766E-05   -.40413E-03
  13  Prefactor     10.115        6.5091        .50455E-07    .62170E-04
  14  Prefactor     4.2741        7.6683       -.46167E-08   -.93853E-04
  15  Prefactor     4.1200        2.5927       -.11923E-07   -.49495E-04
  16  norm          8.5029        7.0880        .10276E-06    .43260E-04
  17  Prefactor     .10000E-03    1.5893       -.18978E-08** at limit **
  18  Prefactor     3.3446        22.050        .67596E-05   -.35775E-03
  19  Prefactor     .10000E-03    2.6279        .30375E-07** at limit **
  20  norm          .10000E-03    4.1749       -.12657E-06** at limit **
  21  Prefactor     49.354        46.450       -.75143E-05   -.45655E-03
  22  Prefactor     .10000E-03    23.712       -.26460E-06** at limit **
  23  Prefactor     5.2506        3.7820        .69726E-06   -.13936E-02
  24  Prefactor     4.0658        4.8213       -.18416E-06   -.23777E-03
  25  Prefactor     24.624        25.365       -.12421E-05   -.10306E-03
  26  Prefactor     .10000E-03    11.487        .18743E-05** at limit **
  27  Normalizat    .74817        .16613        .13980E-05   -.15955E-03
  28  Prefactor     1.0073        .18178       -.92008E-06    .43723E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.04337
  Prefactor  = 0.0001
  Prefactor  = 2.33544
  norm       = 1.43062
  Prefactor  = 41.8587
  norm       = 1.08785
  Prefactor  = 2.1915
  Prefactor  = 5.48793
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 62.3615
  Prefactor  = 10.1152
  Prefactor  = 4.27412
  Prefactor  = 4.12
  norm       = 8.50294
  Prefactor  = 0.000100004
  Prefactor  = 3.34458
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.3541
  Prefactor  = 0.0001
  Prefactor  = 5.25064
  Prefactor  = 4.06578
  Prefactor  = 24.6236
  Prefactor  = 0.000100001
  Normalizat = 0.748174
  Prefactor  = 1.00731
 **********
 **   18 **HESSE 
 **********

 FCN=   6541.623     FROM HESSE     STATUS=OK           527 CALLS     4104 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0434        3.3734        .14949E-03   -1.5359    
   2  Prefactor     .10000E-03    23.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3354        3.2903        .16071E-03   -1.5402    
   4  norm          1.4306        1.6312        .10629E-03   -1.5469    
   5  Prefactor     41.859        26.438        .61964E-04   -1.4413    
   6  norm          1.0878        15.358        .45836E-03   -1.5499    
   7  Prefactor     2.1915        2.1223        .10750E-03   -1.5412    
   8  Prefactor     5.4879        3.3467        .10921E-03   -1.5239    
   9  norm          .10000E-03    4.4757        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    79.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.362        37.800        .50807E-04   -1.4127    
  13  Prefactor     10.115        6.5068        .12598E-03   -1.5072    
  14  Prefactor     4.2741        7.6556        .19492E-03   -1.5294    
  15  Prefactor     4.1200        2.5940        .96431E-04   -1.5302    
  16  norm          8.5029        7.0869        .13747E-03   -1.5125    
  17  Prefactor     .10000E-03    15.822        .18826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3446        24.568        .11063E-02   -1.5342    
  19  Prefactor     .10000E-03    5.5218        .24329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.1983        .16135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     49.354        49.044        .57069E-04   -1.4302    
  22  Prefactor     .10000E-03    23.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.2506        3.8598        .64853E-03   -1.5250    
  24  Prefactor     4.0658        4.7920        .18006E-03   -1.5305    
  25  Prefactor     24.624        25.348        .80717E-04   -1.4715    
  26  Prefactor     .10000E-03    11.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .74817        .18868        .24718E-03   -1.0202    
  28  Prefactor     1.0073        .20910        .25579E-03   -.92486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18832e-09
Minuit parameter uncertainties:
  1  3.37361
  2  7.09748e-05
  3  3.29051
  4  1.63127
  5  26.4456
  6  8.17716
  7  2.12241
  8  3.34679
  9  4.0226e-06
  10  0.000165671
  11  0.00122309
  12  37.8145
  13  6.50725
  14  7.65739
  15  2.59404
  16  7.08759
  17  0.000528537
  18  18.1399
  19  4.57286e-05
  20  1.19144e-05
  21  49.0846
  22  8.80856e-06
  23  3.85996
  24  4.79248
  25  25.3586
  26  0.000183656
  27  0.188844
  28  0.20927
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  4.274e+00  7.657e+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.007e+00  2.093e-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:  7.482e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/604269/likelihoodResults_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.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) = 6541.62241042
delta logL = 0.000704855402546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6541.6221283
delta logL = 0.000986971395832

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6541.622     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      263 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0752        9.6251        .99833E-03   -.14859E-03
   2  Index         2.2119        1.1889        .95918E-02   -.13998E-04
   3  Normalizat    .74729        .17302        .24732E-03    .48082E-04
   4  Prefactor     1.0081        .20519        .25571E-03   -.54819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.07524
  Index      = 2.21194
  Normalizat = 0.74729
  Prefactor  = 1.00806
 **********
 **   18 **HESSE 
 **********

 FCN=   6541.622     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0752        8.7102        .39933E-04   -1.5304    
   2  Index         2.2119        1.0783        .38367E-03   -.59151    
   3  Normalizat    .74729        .17297        .98928E-05   -1.0205    
   4  Prefactor     1.0081        .20507        .10228E-04   -.92461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42566e-11
Minuit parameter uncertainties:
  1  8.71293
  2  1.09077
  3  0.173094
  4  0.205224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604269': 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) = 6541.62212224
delta logL = 0.000993031282633

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  4.075e+00  8.713e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.212e+00  1.091e+00  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.008e+00  2.052e-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:  7.473e-01  1.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/604269/cmap_HighResolution_253065601_253324801_4FGL_J0957.8+3423_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-01 07:27:14.733979', job_id='604269', GAL2='1.01', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630506434.73', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='9.93e-04', ts2='0.39', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='53' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:27:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 604269: <4FGL_J0957.8+3423_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin53 149.471 34.3975 253065601 253324801 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 :                                   852.00 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             271.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

