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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin599
RA = 149.471, Dec = 34.3975
tmin = 394588801, tmax = 394848001
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='606327', job_status='RUN', time_executed='2021-09-01 07:20:41.863950', time_epoch_executed='1630506041.86' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606327

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606327/ft1_4FGL_J0957.8+3423_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606327/ft2_4FGL_J0957.8+3423_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606327/ft1_4FGL_J0957.8+3423_daily_bin599.fits outfile=/scratch/kocevski/606327/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin599.fits ra=149.471 dec=34.3975 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.58
user 4.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606327/ft2_4FGL_J0957.8+3423_daily_bin599.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/606327/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/606327/ft1_filtered_4FGL_J0957.8+3423_daily_bin599.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.57
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606327/ft1_filtered_4FGL_J0957.8+3423_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/606327/ft2_4FGL_J0957.8+3423_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/606327/ltcube_394588801_394848001_4FGL_J0957.8+3423_daily_bin599.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/606327/ft2_4FGL_J0957.8+3423_daily_bin599.fits
.....................!
real 12.06
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606327/ft1_filtered_4FGL_J0957.8+3423_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/606327/ft2_4FGL_J0957.8+3423_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/606327/ltcube_394588801_394848001_4FGL_J0957.8+3423_daily_bin599.fits outfile=/scratch/kocevski/606327/expmap_394588801_394848001_4FGL_J0957.8+3423_daily_bin599.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/606327/ltcube_394588801_394848001_4FGL_J0957.8+3423_daily_bin599.fits
.....................!
real 190.79
user 186.43
sys 3.92

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/606327/ft1_filtered_4FGL_J0957.8+3423_daily_bin599.fits scfile=/scratch/kocevski/606327/ft2_4FGL_J0957.8+3423_daily_bin599.fits outfile=/scratch/kocevski/606327/cmap_394588801_394848001_4FGL_J0957.8+3423_daily_bin599.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606327/ft1_filtered_4FGL_J0957.8+3423_daily_bin599.fits scfile=/scratch/kocevski/606327/ft2_4FGL_J0957.8+3423_daily_bin599.fits outfile=/scratch/kocevski/606327/cmap_HighResolution_394588801_394848001_4FGL_J0957.8+3423_daily_bin599.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=149.471 yref=34.3975 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4180       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.699       1.0000         .10000E-03   10000.    
     6 'norm      '    14.624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.256       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19545E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5241       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7524       1.0000         .10000E-03   10000.    
    16 'norm      '    .12260E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6834       1.0000         .10000E-03   10000.    
    20 'norm      '    13.603       1.0000         .10000E-03   10000.    
    21 'Prefactor '    78.143       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35787E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0241       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.657       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .69082       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2027       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=   5245.112     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3536 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4186        4.1337       -.49859E-06   -.36316E-04
   2  Prefactor     .10000E-03    26.725       -.19058E-05** at limit **
   3  Prefactor     .10000E-03    1.2781        .13908E-07** at limit **
   4  norm          .10000E-03    .96411       -.72504E-07** at limit **
   5  Prefactor     33.706        23.350       -.23966E-06    .78542E-05
   6  norm          14.624        11.311        .30933E-07   -.56862E-04
   7  Prefactor     .33296        1.7275       -.61407E-06   -.14589E-02
   8  Prefactor     .10000E-03    2.9343       -.21673E-06** at limit **
   9  norm          .10000E-03    7.1055        .19287E-06** at limit **
  10  Prefactor     19.155        34.209        .23035E-05    .14072E-04
  11  Prefactor     12.200        27.763       -.24534E-04   -.19162E-03
  12  Prefactor     .10001E-03    102.09        .47468E-04** at limit **
  13  Prefactor     3.5229        6.7950        .71111E-08   -.30297E-03
  14  Prefactor     11.334        7.9781       -.18354E-06    .31588E-04
  15  Prefactor     4.7531        2.8015       -.23783E-06   -.18273E-04
  16  norm          .10003E-03    5.2901       -.14236E-06** at limit **
  17  Prefactor     .10000E-03    2.1261        .50286E-07** at limit **
  18  Prefactor     .10000E-03    12.134       -.16803E-06** at limit **
  19  Prefactor     1.6849        4.1257       -.30131E-06   -.50567E-03
  20  norm          13.604        12.791       -.61770E-06    .20987E-03
  21  Prefactor     78.115        64.131       -.24352E-04    .16237E-04
  22  Prefactor     .10001E-03    208.97       -.39442E-04** at limit **
  23  Prefactor     .10000E-03    2.5665       -.47716E-07** at limit **
  24  Prefactor     6.0345        7.3585       -.65668E-06    .60896E-03
  25  Prefactor     .10000E-03    38.001       -.44071E-05** at limit **
  26  Prefactor     43.661        31.000        .84750E-06    .21049E-04
  27  Normalizat    .69090        .18900        .63852E-05   -.12448E-03
  28  Prefactor     1.2025        .20259       -.26153E-06    .16723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.41858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.7055
  norm       = 14.6236
  Prefactor  = 0.332958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1546
  Prefactor  = 12.2003
  Prefactor  = 0.000100008
  Prefactor  = 3.52287
  Prefactor  = 11.3335
  Prefactor  = 4.75313
  norm       = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68495
  norm       = 13.6042
  Prefactor  = 78.1151
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 6.03445
  Prefactor  = 0.0001
  Prefactor  = 43.6609
  Normalizat = 0.690901
  Prefactor  = 1.20253
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.112     FROM HESSE     STATUS=OK           521 CALLS     4057 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4186        4.1344        .12361E-03   -1.5242    
   2  Prefactor     .10000E-03    26.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2914        .79926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .98646        .69408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.706        23.324        .69029E-04   -1.4546    
   6  norm          14.624        11.275        .10474E-03   -1.4943    
   7  Prefactor     .33296        1.6571        .18176E-03   -1.5593    
   8  Prefactor     .10000E-03    2.9778        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.1110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.155        34.259        .91538E-04   -1.4832    
  11  Prefactor     12.200        28.054        .11442E-03   -1.5009    
  12  Prefactor     .10001E-03    106.48        .40499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5229        6.7421        .21534E-03   -1.5333    
  14  Prefactor     11.334        7.9779        .11900E-03   -1.5035    
  15  Prefactor     4.7531        2.7994        .88625E-04   -1.5272    
  16  norm          .10003E-03    26.120        .31756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1366        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6849        4.0815        .21426E-03   -1.5448    
  20  norm          13.604        12.780        .10860E-03   -1.4970    
  21  Prefactor     78.115        63.752        .22714E-03   -1.3938    
  22  Prefactor     .10001E-03    209.02        .42627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5922        .11315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.0345        7.2456        .16359E-03   -1.5217    
  25  Prefactor     .10000E-03    38.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.661        30.998        .60675E-04   -1.4385    
  27  Normalizat    .69090        .22376        .27103E-03   -1.0425    
  28  Prefactor     1.2025        .24133        .24720E-03   -.86254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05344e-09
Minuit parameter uncertainties:
  1  4.13457
  2  1.19171e-05
  3  1.93631e-06
  4  7.31896e-06
  5  23.3301
  6  11.2767
  7  1.48541
  8  3.89256e-05
  9  5.64974e-05
  10  34.2937
  11  28.0846
  12  0.00188189
  13  6.74351
  14  7.97865
  15  2.79943
  16  0.00181195
  17  7.76893e-06
  18  2.25194e-06
  19  4.08219
  20  12.7829
  21  63.8083
  22  0.0021656
  23  5.49472e-06
  24  7.24665
  25  7.41308e-07
  26  31.0094
  27  0.224055
  28  0.241551
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.133e+01  7.979e+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.203e+00  2.416e-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:  6.909e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.69
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.10e-05

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) = 5244.10672244
delta logL = 1.00562094573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5244.03113279
delta logL = 1.08121058887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.126       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4784       1.0000          .0000       10.000    
     3 'Normalizat'    .70746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1925       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=   5244.031     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.126        11.475        .25746E-02   -.47412E-02
   2  Index         1.4785        .40884        .18768       -.10639E-04
   3  Normalizat    .70748        .17003        .60578E-01    .18506E-04
   4  Prefactor     1.1924        .20005        .56089E-01    .48315E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1256
  Index      = 1.47846
  Normalizat = 0.707477
  Prefactor  = 1.19243
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.031     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.126        11.027        .10298E-03   -1.4930    
   2  Index         1.4785        .42980        .75741E-02   -.78145    
   3  Normalizat    .70748        .20118        .26796E-03   -1.0360    
   4  Prefactor     1.1924        .23723        .24801E-03   -.86564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79268e-08
Minuit parameter uncertainties:
  1  11.0283
  2  0.430859
  3  0.201391
  4  0.237443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606327': 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) = 5244.03113278
delta logL = 1.08121059655

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.513e+01  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.478e+00  4.309e-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:  1.192e+00  2.374e-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.075e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.86
Ra Dec: 149.471 34.398
Photon Index (Free Index): 1.48 +/- 0.43
Photon Flux (Free Index): 1.61e-08 +/- 1.44e-08
Energy Flux (Free Index): 5.49e-05 +/- 6.27e-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/606327/cmap_HighResolution_394588801_394848001_4FGL_J0957.8+3423_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='5.49e-05', photon_flux_error='2.29e-08', dlogl='1.08e+00', energy_flux='1.56e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-01 07:31:18.554153', photon_index_error2='0.43', photon_index2='1.48', ts='7.69', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='6.27e-05', EG='0.69', time_epoch_completed='1630506678.55', return_code='0', job_id='606327', GAL2='1.19', EG2='0.71', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='1.44e-08', ts2='9.86', photon_index='2.16' WHERE bin_id='599' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:31:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 606327: <4FGL_J0957.8+3423_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin599 149.471 34.3975 394588801 394848001 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 :                                   634.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

