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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1400
RA = 149.471, Dec = 34.3975
tmin = 602208001, tmax = 602467201
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='611877', job_status='RUN', time_executed='2021-09-01 07:34:53.776592', time_epoch_executed='1630506893.78' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/611877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/611877/ft1_4FGL_J0957.8+3423_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/611877/ft2_4FGL_J0957.8+3423_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/611877/ft1_4FGL_J0957.8+3423_daily_bin1400.fits outfile=/scratch/kocevski/611877/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1400.fits ra=149.471 dec=34.3975 rad=12.0 tmin=602208001.0 tmax=602467201.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.74
user 5.02
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/611877/ft1_filtered_4FGL_J0957.8+3423_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/611877/ft2_4FGL_J0957.8+3423_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/611877/ltcube_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.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/611877/ft2_4FGL_J0957.8+3423_daily_bin1400.fits
.....................!
real 11.76
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/611877/ft1_filtered_4FGL_J0957.8+3423_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/611877/ft2_4FGL_J0957.8+3423_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/611877/ltcube_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.fits outfile=/scratch/kocevski/611877/expmap_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.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/611877/ltcube_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.fits
.....................!
real 191.56
user 186.92
sys 4.22

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/611877/ft1_filtered_4FGL_J0957.8+3423_daily_bin1400.fits scfile=/scratch/kocevski/611877/ft2_4FGL_J0957.8+3423_daily_bin1400.fits outfile=/scratch/kocevski/611877/cmap_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.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.62
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/611877/ft1_filtered_4FGL_J0957.8+3423_daily_bin1400.fits scfile=/scratch/kocevski/611877/ft2_4FGL_J0957.8+3423_daily_bin1400.fits outfile=/scratch/kocevski/611877/cmap_HighResolution_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8896       1.0000         .10000E-03   10000.    
     4 'norm      '    4.3097       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3139       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11510       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.381       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8179       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.7580       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56988       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0229       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.723       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10471E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.346       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .80179       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98091       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=   5325.303     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3515 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1895        .12146E-07** at limit **
   2  Prefactor     2.5974        19.380        .18517E-06   -.14690E-03
   3  Prefactor     3.8897        2.5997       -.95854E-08    .23142E-04
   4  norm          4.3098        2.2135       -.17212E-09   -.13271E-04
   5  Prefactor     8.3134        11.457        .19324E-06   -.47475E-04
   6  norm          .10000E-03    6.4704       -.99744E-06** at limit **
   7  Prefactor     .11566        1.0734       -.40855E-07   -.24629E-04
   8  Prefactor     .10000E-03    2.6527       -.20996E-07** at limit **
   9  norm          .10000E-03    5.7274        .17420E-06** at limit **
  10  Prefactor     57.384        31.186        .18697E-05    .97953E-04
  11  Prefactor     .10000E-03    7.3979       -.68740E-06** at limit **
  12  Prefactor     .10000E-03    52.028       -.58096E-05** at limit **
  13  Prefactor     4.5370        4.5696       -.44208E-07   -.59179E-03
  14  Prefactor     6.8178        7.5949       -.19253E-06   -.34157E-04
  15  Prefactor     .10000E-03    .60053       -.54490E-08** at limit **
  16  norm          9.7584        7.9456        .10037E-06   -.14396E-03
  17  Prefactor     .56979        2.3200        .11649E-06   -.10798E-03
  18  Prefactor     .10000E-03    27.323       -.26388E-05** at limit **
  19  Prefactor     .10000E-03    1.2781       -.77607E-07** at limit **
  20  norm          4.0229        5.5010        .54003E-07   -.53369E-03
  21  Prefactor     36.723        34.244        .19107E-06   -.10515E-05
  22  Prefactor     .10000E-03    7.0534        .16111E-05** at limit **
  23  Prefactor     .10063E-03    2.1783        .10399E-05** at limit **
  24  Prefactor     .10000E-03    1.2794        .77886E-07** at limit **
  25  Prefactor     18.343        24.152       -.22646E-05   -.20737E-03
  26  Prefactor     .10000E-03    50.778        .41183E-05** at limit **
  27  Normalizat    .80176        .14812       -.33400E-06   -.17065E-03
  28  Prefactor     .98090        .17669       -.14895E-07   -.11706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.59743
  Prefactor  = 3.88965
  norm       = 4.30979
  Prefactor  = 8.31338
  norm       = 0.0001
  Prefactor  = 0.115655
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.3845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53701
  Prefactor  = 6.81777
  Prefactor  = 0.0001
  norm       = 9.75845
  Prefactor  = 0.569786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.02294
  Prefactor  = 36.7231
  Prefactor  = 0.0001
  Prefactor  = 0.000100625
  Prefactor  = 0.0001
  Prefactor  = 18.3425
  Prefactor  = 0.0001
  Normalizat = 0.801758
  Prefactor  = 0.9809
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.303     FROM HESSE     STATUS=OK           521 CALLS     4036 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2001        .77715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5974        29.954        .12658E-02   -1.5386    
   3  Prefactor     3.8897        2.5856        .92074E-04   -1.5313    
   4  norm          4.3098        2.2128        .75274E-04   -1.5293    
   5  Prefactor     8.3134        11.408        .69519E-03   -1.5131    
   6  norm          .10000E-03    6.5967        .36087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11566        2.3904        .14494E-02   -1.5640    
   8  Prefactor     .10000E-03    2.7287        .23182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.7582        .17058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.384        31.213        .52959E-04   -1.4191    
  11  Prefactor     .10000E-03    7.4103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5370        5.6231        .91968E-03   -1.5282    
  14  Prefactor     6.8178        7.5838        .15366E-03   -1.5186    
  15  Prefactor     .10000E-03    .60534        .55207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7584        7.9917        .64141E-03   -1.5083    
  17  Prefactor     .56979        2.2818        .21256E-03   -1.5557    
  18  Prefactor     .10000E-03    27.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2823        .80467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0229        5.9918        .10053E-02   -1.5307    
  21  Prefactor     36.723        34.245        .66135E-04   -1.4495    
  22  Prefactor     .10000E-03    7.0653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10063E-03    40.478        .18748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.2842        .80611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.343        24.076        .93509E-04   -1.4851    
  26  Prefactor     .10000E-03    51.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .80176        .16858        .21785E-03   -1.0000    
  28  Prefactor     .98090        .20465        .24372E-03   -.93369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71899e-08
Minuit parameter uncertainties:
  1  4.23289e-07
  2  17.6519
  3  2.58564
  4  2.21284
  5  11.4111
  6  1.5922e-05
  7  1.05118
  8  5.27647e-06
  9  5.55422e-06
  10  31.2216
  11  1.31988e-05
  12  0.000235633
  13  5.62375
  14  7.58483
  15  4.36109e-07
  16  7.99255
  17  2.28044
  18  0.00012114
  19  5.36418e-07
  20  5.99269
  21  34.2633
  22  3.96097e-05
  23  0.0100696
  24  1.34467e-06
  25  24.0886
  26  0.000234806
  27  0.168688
  28  0.204811
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  6.818e+00  7.585e+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:  9.809e-01  2.048e-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:  8.018e-01  1.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 2.18e-08
Energy Flux (Fixed Index): 9.41e-06 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/611877/likelihoodResults_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.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) = 5325.04099059
delta logL = 0.262031290145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5325.03977937
delta logL = 0.263242509293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8427       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8077       1.0000          .0000       10.000    
     3 'Normalizat'    .77609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99767       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=   5325.040     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      274 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8434        7.5426        .12262E-03    .32154E-03
   2  Index         2.8076        1.0855        .61788E-02    .86345E-04
   3  Normalizat    .77617        .17188        .22111E-03    .41130E-03
   4  Prefactor     .99752        .20516        .24189E-03    .46081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.84344
  Index      = 2.80759
  Normalizat = 0.776173
  Prefactor  = 0.997515
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.040     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8434        6.1204        .49047E-05   -1.5316    
   2  Index         2.8076        .88152        .24715E-03   -.45391    
   3  Normalizat    .77617        .17090        .44222E-04   -1.0096    
   4  Prefactor     .99752        .20463        .48378E-04   -.92812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69242e-10
Minuit parameter uncertainties:
  1  6.12138
  2  0.887274
  3  0.171019
  4  0.204785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/611877': 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) = 5325.03977903
delta logL = 0.263242847343

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  3.843e+00  6.121e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.808e+00  8.873e-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:  9.975e-01  2.048e-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.762e-01  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.81 +/- 0.89
Photon Flux (Free Index): 4.00e-08 +/- 4.34e-08
Energy Flux (Free Index): 8.92e-06 +/- 8.15e-06

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/611877/cmap_HighResolution_602208001_602467201_4FGL_J0957.8+3423_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-03', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='8.92e-06', photon_flux_error='2.18e-08', dlogl='2.63e-01', energy_flux='9.41e-06', photon_flux2='4.00e-08', job_status='DONE', time_completed='2021-09-01 07:47:25.462896', photon_index_error2='0.89', photon_index2='2.81', ts='1.83', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='7.79e-08', energy_flux_error2='8.15e-06', EG='0.80', time_epoch_completed='1630507645.46', return_code='0', job_id='611877', GAL2='1.00', EG2='0.78', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.34e-08', ts2='2.39', photon_index='2.16' WHERE bin_id='1400' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 611877: <4FGL_J0957.8+3423_daily_bin1400> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1400> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 07:31:06 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:31:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 07:31:08 2021
Terminated at Wed Sep  1 07:47:26 2021
Results reported at Wed Sep  1 07:47:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1400 149.471 34.3975 602208001 602467201 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

