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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin1570
RA = 149.471, Dec = 34.3975
tmin = 646272001, tmax = 646531201
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='613389', job_status='RUN', time_executed='2021-09-01 07:36:38.024199', time_epoch_executed='1630506998.02' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613389

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613389/ft1_4FGL_J0957.8+3423_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613389/ft2_4FGL_J0957.8+3423_daily_bin1570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613389/ft1_4FGL_J0957.8+3423_daily_bin1570.fits outfile=/scratch/kocevski/613389/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin1570.fits ra=149.471 dec=34.3975 rad=12.0 tmin=646272001.0 tmax=646531201.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.36
user 3.88
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613389/ft1_filtered_4FGL_J0957.8+3423_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/613389/ft2_4FGL_J0957.8+3423_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/613389/ltcube_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.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/613389/ft2_4FGL_J0957.8+3423_daily_bin1570.fits
.....................!
real 12.60
user 12.02
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613389/ft1_filtered_4FGL_J0957.8+3423_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/613389/ft2_4FGL_J0957.8+3423_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/613389/ltcube_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.fits outfile=/scratch/kocevski/613389/expmap_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.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/613389/ltcube_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.fits
.....................!
real 194.47
user 186.79
sys 5.39

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/613389/ft1_filtered_4FGL_J0957.8+3423_daily_bin1570.fits scfile=/scratch/kocevski/613389/ft2_4FGL_J0957.8+3423_daily_bin1570.fits outfile=/scratch/kocevski/613389/cmap_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.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.82
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613389/ft1_filtered_4FGL_J0957.8+3423_daily_bin1570.fits scfile=/scratch/kocevski/613389/ft2_4FGL_J0957.8+3423_daily_bin1570.fits outfile=/scratch/kocevski/613389/cmap_HighResolution_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.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.77
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8959       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4168       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2105       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19261E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6945       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .71595       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3289       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.479       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5914       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1308       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8118       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0967       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1259       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11116E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .93736       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2091       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=   5646.433     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3022 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3654        3.3894        .62278E-07    .34046E-04
   2  Prefactor     .10000E-03    21.930        .47010E-07** at limit **
   3  Prefactor     4.8974        4.2347        .22893E-06    .75716E-05
   4  norm          1.4164        1.6804        .16615E-06    .31662E-03
   5  Prefactor     .10000E-03    41.215        .13345E-05** at limit **
   6  norm          11.114        9.8173        .93376E-06    .41019E-04
   7  Prefactor     1.2101        2.5206        .49075E-06    .34145E-04
   8  Prefactor     .10006E-03    3.0030       -.66589E-06** at limit **
   9  norm          .10000E-03    5.9022       -.22225E-06** at limit **
  10  Prefactor     10.267        33.904        .55174E-06    .44247E-05
  11  Prefactor     .10000E-03    7.6069       -.20776E-06** at limit **
  12  Prefactor     2.6816        80.112        .70203E-06   -.11505E-04
  13  Prefactor     .71432        5.0302        .11019E-06   -.82458E-04
  14  Prefactor     7.5879        8.7103        .17067E-05    .99942E-04
  15  Prefactor     1.3282        2.7111        .47901E-06    .56264E-04
  16  norm          3.1105        7.5356        .63873E-06    .95429E-05
  17  Prefactor     .10000E-03    2.7950       -.43483E-07** at limit **
  18  Prefactor     15.484        34.185       -.70028E-07    .43819E-05
  19  Prefactor     5.5916        4.6139        .81232E-08   -.30426E-04
  20  norm          6.1315        6.8847       -.31544E-07   -.94277E-05
  21  Prefactor     .10000E-03    53.332       -.70182E-07** at limit **
  22  Prefactor     1.8043        117.66        .47569E-05    .33965E-05
  23  Prefactor     4.0981        4.3216       -.33682E-07    .12648E-04
  24  Prefactor     5.1269        6.1972       -.57125E-06   -.83338E-04
  25  Prefactor     .10000E-03    55.312       -.10262E-05** at limit **
  26  Prefactor     .10000E-03    11.332        .79792E-07** at limit **
  27  Normalizat    .93717        .19618       -.25180E-06    .73614E-04
  28  Prefactor     1.2092        .21581       -.58667E-06    .82061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.36541
  Prefactor  = 0.0001
  Prefactor  = 4.89736
  norm       = 1.41637
  Prefactor  = 0.0001
  norm       = 11.1139
  Prefactor  = 1.21008
  Prefactor  = 0.000100058
  norm       = 0.0001
  Prefactor  = 10.2667
  Prefactor  = 0.0001
  Prefactor  = 2.6816
  Prefactor  = 0.71432
  Prefactor  = 7.58793
  Prefactor  = 1.32815
  norm       = 3.11054
  Prefactor  = 0.0001
  Prefactor  = 15.4842
  Prefactor  = 5.59161
  norm       = 6.13155
  Prefactor  = 0.0001
  Prefactor  = 1.80431
  Prefactor  = 4.09807
  Prefactor  = 5.12687
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.937173
  Prefactor  = 1.20921
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.433     FROM HESSE     STATUS=OK           533 CALLS     3555 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3654        3.3888        .11813E-03   -1.5290    
   2  Prefactor     .10000E-03    21.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8974        4.1891        .13266E-03   -1.5265    
   4  norm          1.4164        1.6429        .10149E-03   -1.5470    
   5  Prefactor     .10000E-03    41.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.114        9.7291        .12021E-03   -1.5041    
   7  Prefactor     1.2101        2.4632        .15646E-03   -1.5488    
   8  Prefactor     .10006E-03    22.048        .22972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.9094        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.267        33.629        .12495E-03   -1.5067    
  11  Prefactor     .10000E-03    7.6142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6816        80.203        .24819E-03   -1.5380    
  13  Prefactor     .71432        22.392        .30409E-02   -1.5539    
  14  Prefactor     7.5879        8.7263        .72796E-03   -1.5157    
  15  Prefactor     1.3282        2.6738        .16448E-03   -1.5477    
  16  norm          3.1105        7.4938        .22976E-03   -1.5355    
  17  Prefactor     .10000E-03    2.8658        .24473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.484        34.268        .10180E-03   -1.4921    
  19  Prefactor     5.5916        4.6032        .13932E-03   -1.5235    
  20  norm          6.1315        6.8744        .16214E-03   -1.5213    
  21  Prefactor     .10000E-03    53.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8043        112.88        .31037E-03   -1.5439    
  23  Prefactor     4.0981        4.3093        .15272E-03   -1.5303    
  24  Prefactor     5.1269        6.0388        .14790E-03   -1.5255    
  25  Prefactor     .10000E-03    56.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .93717        .23365        .25642E-03   -.95166    
  28  Prefactor     1.2092        .25956        .26586E-03   -.86048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57351e-08
Minuit parameter uncertainties:
  1  3.38892
  2  5.62812e-05
  3  4.18938
  4  1.64297
  5  0.000273761
  6  9.73051
  7  2.46338
  8  0.00226307
  9  4.81353e-06
  10  33.6908
  11  1.04495e-05
  12  29.3734
  13  8.00148
  14  8.72781
  15  2.67408
  16  7.49604
  17  3.87091e-06
  18  34.3112
  19  4.60345
  20  6.87526
  21  0.000152139
  22  28.598
  23  4.30958
  24  6.03954
  25  0.000364647
  26  1.15522e-05
  27  0.233903
  28  0.259834
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  7.588e+00  8.728e+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.209e+00  2.598e-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.372e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 149.471 34.398
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/613389/likelihoodResults_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.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) = 5646.40250907
delta logL = 0.0301047071189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5646.39372983
delta logL = 0.0388839433926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4061       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4001       1.0000          .0000       10.000    
     3 'Normalizat'    .92848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2151       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=   5646.394     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      248 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4051        9.4101        .15858E-03   -.87464E-05
   2  Index         2.4003        .90151        .69896E-02    .23340E-03
   3  Normalizat    .92847        .22155        .25749E-03   -.33545E-03
   4  Prefactor     1.2151        .25524        .26531E-03   -.39448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.4051
  Index      = 2.40035
  Normalizat = 0.928467
  Prefactor  = 1.21507
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.394     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4051        8.9230        .63431E-05   -1.5202    
   2  Index         2.4003        .85496        .13979E-02   -.54677    
   3  Normalizat    .92847        .22153        .51499E-04   -.95467    
   4  Prefactor     1.2151        .25531        .53062E-04   -.85869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12911e-10
Minuit parameter uncertainties:
  1  8.92483
  2  0.860775
  3  0.221745
  4  0.255569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613389': 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) = 5646.39372976
delta logL = 0.0388840087462

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  6.405e+00  8.925e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.400e+00  8.608e-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.215e+00  2.556e-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.285e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 149.471 34.398
Photon Index (Free Index): 2.40 +/- 0.86
Photon Flux (Free Index): 2.88e-08 +/- 3.90e-08
Energy Flux (Free Index): 9.45e-06 +/- 1.06e-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/613389/cmap_HighResolution_646272001_646531201_4FGL_J0957.8+3423_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='9.45e-06', photon_flux_error='2.50e-08', dlogl='3.89e-02', energy_flux='1.05e-05', photon_flux2='2.88e-08', job_status='DONE', time_completed='2021-09-01 07:48:59.485401', photon_index_error2='0.86', photon_index2='2.40', ts='1.30', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='8.55e-08', energy_flux_error2='1.06e-05', EG='0.94', time_epoch_completed='1630507739.49', return_code='0', job_id='613389', GAL2='1.22', EG2='0.93', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.90e-08', ts2='1.38', photon_index='2.16' WHERE bin_id='1570' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:48:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 613389: <4FGL_J0957.8+3423_daily_bin1570> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin1570> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 07:36:21 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:36:23 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:36:23 2021
Terminated at Wed Sep  1 07:49:00 2021
Results reported at Wed Sep  1 07:49:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0957.8+3423_daily_bin1570 149.471 34.3975 646272001 646531201 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 :                                   719.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            759 sec.

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

