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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin511
RA = 149.471, Dec = 34.3975
tmin = 371779201, tmax = 372038401
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='606166', job_status='RUN', time_executed='2021-09-01 07:16:25.569293', time_epoch_executed='1630505785.57' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606166/ft1_4FGL_J0957.8+3423_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606166/ft2_4FGL_J0957.8+3423_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606166/ft1_4FGL_J0957.8+3423_daily_bin511.fits outfile=/scratch/kocevski/606166/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin511.fits ra=149.471 dec=34.3975 rad=12.0 tmin=371779201.0 tmax=372038401.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 3.41
user 3.18
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606166/ft1_filtered_4FGL_J0957.8+3423_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/606166/ft2_4FGL_J0957.8+3423_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/606166/ltcube_371779201_372038401_4FGL_J0957.8+3423_daily_bin511.fits outfile=/scratch/kocevski/606166/expmap_371779201_372038401_4FGL_J0957.8+3423_daily_bin511.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/606166/ltcube_371779201_372038401_4FGL_J0957.8+3423_daily_bin511.fits
.....................!
real 191.08
user 185.33
sys 5.32

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/606166/ft1_filtered_4FGL_J0957.8+3423_daily_bin511.fits scfile=/scratch/kocevski/606166/ft2_4FGL_J0957.8+3423_daily_bin511.fits outfile=/scratch/kocevski/606166/cmap_371779201_372038401_4FGL_J0957.8+3423_daily_bin511.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.79
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606166/ft1_filtered_4FGL_J0957.8+3423_daily_bin511.fits scfile=/scratch/kocevski/606166/ft2_4FGL_J0957.8+3423_daily_bin511.fits outfile=/scratch/kocevski/606166/cmap_HighResolution_371779201_372038401_4FGL_J0957.8+3423_daily_bin511.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.89
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7059       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3575       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4645       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52515       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .96430       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.099       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.577       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7808       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9483       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.448       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.550       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15385E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90272       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0232       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=   6283.020     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3533 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7054        3.0778        .11645E-06   -.22241E-03
   2  Prefactor     22.610        34.391       -.34746E-05   -.12052E-03
   3  Prefactor     .10000E-03    1.4046       -.23073E-07** at limit **
   4  norm          1.2996        1.2619       -.22751E-07   -.80655E-04
   5  Prefactor     .10000E-03    6.8967        .32731E-06** at limit **
   6  norm          5.3580        5.9329       -.25323E-07   -.53688E-04
   7  Prefactor     5.4646        2.6483        .40326E-07    .93107E-04
   8  Prefactor     .52729        2.7122        .18726E-06   -.34641E-03
   9  norm          .10000E-03    7.6280       -.10520E-05** at limit **
  10  Prefactor     .10000E-03    17.947        .35012E-06** at limit **
  11  Prefactor     .95501        19.139       -.30825E-06    .11912E-04
  12  Prefactor     .10000E-03    12.155       -.29007E-06** at limit **
  13  Prefactor     13.098        8.2215       -.63703E-07   -.55459E-04
  14  Prefactor     17.576        11.597       -.17261E-06    .18055E-04
  15  Prefactor     .10000E-03    .74963        .26012E-07** at limit **
  16  norm          7.7804        7.2004       -.38173E-07   -.34237E-04
  17  Prefactor     7.9447        3.3457        .39846E-06   -.13866E-02
  18  Prefactor     .10000E-03    25.027       -.88317E-07** at limit **
  19  Prefactor     .10000E-03    3.0812       -.72396E-06** at limit **
  20  norm          .10000E-03    7.4038        .90141E-06** at limit **
  21  Prefactor     .10000E-03    123.24       -.40745E-06** at limit **
  22  Prefactor     26.451        23.738       -.25466E-07    .21924E-04
  23  Prefactor     10.551        5.4812        .56788E-06    .34037E-03
  24  Prefactor     .10000E-03    2.1405       -.22388E-08** at limit **
  25  Prefactor     .10000E-03    83.752        .50622E-06** at limit **
  26  Prefactor     .10000E-03    9.5206        .30287E-06** at limit **
  27  Normalizat    .90290        .17232       -.94257E-07    .14219E-03
  28  Prefactor     1.0231        .18985        .58249E-07    .94812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70536
  Prefactor  = 22.6102
  Prefactor  = 0.0001
  norm       = 1.29965
  Prefactor  = 0.0001
  norm       = 5.35802
  Prefactor  = 5.4646
  Prefactor  = 0.527287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.955013
  Prefactor  = 0.0001
  Prefactor  = 13.0984
  Prefactor  = 17.5756
  Prefactor  = 0.0001
  norm       = 7.78041
  Prefactor  = 7.94469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4507
  Prefactor  = 10.5508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.902905
  Prefactor  = 1.02309
 **********
 **   18 **HESSE 
 **********

 FCN=   6283.020     FROM HESSE     STATUS=OK           523 CALLS     4056 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7054        3.0801        .18099E-03   -1.5447    
   2  Prefactor     22.610        35.508        .84213E-04   -1.4757    
   3  Prefactor     .10000E-03    1.4195        .91639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2996        1.2414        .84434E-04   -1.5480    
   5  Prefactor     .10000E-03    6.9301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3580        5.9339        .17363E-03   -1.5245    
   7  Prefactor     5.4646        2.6438        .84317E-04   -1.5240    
   8  Prefactor     .52729        5.6806        .24651E-02   -1.5563    
   9  norm          .10000E-03    7.6908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .95501        169.02        .63840E-02   -1.5513    
  12  Prefactor     .10000E-03    12.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.098        8.2663        .11067E-03   -1.4984    
  14  Prefactor     17.576        11.629        .95532E-04   -1.4869    
  15  Prefactor     .10000E-03    .76681        .66979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7804        7.2055        .14375E-03   -1.5150    
  17  Prefactor     7.9447        4.5031        .58799E-03   -1.5144    
  18  Prefactor     .10000E-03    25.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5825        .25858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    124.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.451        23.713        .77896E-04   -1.4679    
  23  Prefactor     10.551        5.4772        .12336E-03   -1.5058    
  24  Prefactor     .10000E-03    2.1531        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    84.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.5342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .90290        .21037        .24217E-03   -.96358    
  28  Prefactor     1.0231        .22838        .26636E-03   -.91964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67742e-10
Minuit parameter uncertainties:
  1  3.0804
  2  35.5411
  3  2.91693e-06
  4  1.24145
  5  3.33765e-05
  6  5.93451
  7  2.64387
  8  3.46148
  9  5.08318e-05
  10  2.558e-05
  11  25.4823
  12  1.61687e-05
  13  8.267
  14  11.631
  15  2.47962e-07
  16  7.20634
  17  4.50333
  18  4.69245e-05
  19  6.61619e-05
  20  1.7747e-05
  21  0.000120287
  22  23.7214
  23  5.47745
  24  2.77192e-06
  25  0.000194227
  26  1.61334e-05
  27  0.210566
  28  0.228595
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.758e+01  1.163e+01  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.023e+00  2.286e-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:  9.029e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.61e-05

TS (Fixed Index): 3.74
Ra Dec: 149.471 34.398
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606166/likelihoodResults_371779201_372038401_4FGL_J0957.8+3423_daily_bin511.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) = 6282.24277212
delta logL = 0.777630106206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6282.23701586
delta logL = 0.783386363796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0319       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8254       1.0000          .0000       10.000    
     3 'Normalizat'    .85385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0620       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=   6282.237     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0310        12.359        .11139E-03   -.21577E-03
   2  Index         2.8255        .76214        .37707E-02   -.53914E-04
   3  Normalizat    .85385        .19917        .24800E-03   -.12593E-03
   4  Prefactor     1.0620        .22943        .26200E-03   -.19178E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03096
  Index      = 2.82547
  Normalizat = 0.853846
  Prefactor  = 1.06198
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.237     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0310        9.5979        .44555E-05   -1.5141    
   2  Index         2.8255        .59250        .15083E-03   -.44993    
   3  Normalizat    .85385        .19859        .99199E-05   -.98101    
   4  Prefactor     1.0620        .22861        .52400E-04   -.90691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61502e-11
Minuit parameter uncertainties:
  1  9.59972
  2  0.594227
  3  0.198757
  4  0.22882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606166': 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) = 6282.23701585
delta logL = 0.783386370184

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  8.031e+00  9.600e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.825e+00  5.942e-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.062e+00  2.288e-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.538e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.83 +/- 0.59
Photon Flux (Free Index): 8.69e-08 +/- 4.88e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.07e-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/606166/cmap_HighResolution_371779201_372038401_4FGL_J0957.8+3423_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='1.91e-05', photon_flux_error='3.34e-08', dlogl='7.83e-01', energy_flux='2.43e-05', photon_flux2='8.69e-08', job_status='DONE', time_completed='2021-09-01 07:30:04.456535', photon_index_error2='0.59', photon_index2='2.83', ts='3.74', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.07e-05', EG='0.90', time_epoch_completed='1630506604.46', return_code='0', job_id='606166', GAL2='1.06', EG2='0.85', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.88e-08', ts2='5.41', photon_index='2.16' WHERE bin_id='511' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:30:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 606166: <4FGL_J0957.8+3423_daily_bin511> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin511> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 07:15:58 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:15:59 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:15:59 2021
Terminated at Wed Sep  1 07:30:05 2021
Results reported at Wed Sep  1 07:30:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin511 149.471 34.3975 371779201 372038401 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 :                                   811.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

