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


Performing analysis on: 4FGL_J0957.8+3423_daily_bin165
RA = 149.471, Dec = 34.3975
tmin = 282096001, tmax = 282355201
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='604429', job_status='RUN', time_executed='2021-09-01 07:11:07.460141', time_epoch_executed='1630505467.46' WHERE source_name='4FGL J0957.8+3423' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604429/ft1_4FGL_J0957.8+3423_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604429/ft2_4FGL_J0957.8+3423_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604429/ft1_4FGL_J0957.8+3423_daily_bin165.fits outfile=/scratch/kocevski/604429/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin165.fits ra=149.471 dec=34.3975 rad=12.0 tmin=282096001.0 tmax=282355201.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.99
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604429/ft2_4FGL_J0957.8+3423_daily_bin165.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/604429/ft1_filteredMKT_4FGL_J0957.8+3423_daily_bin165.fits evtable="EVENTS" outfile="/scratch/kocevski/604429/ft1_filtered_4FGL_J0957.8+3423_daily_bin165.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.62
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604429/ft1_filtered_4FGL_J0957.8+3423_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/604429/ft2_4FGL_J0957.8+3423_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/604429/ltcube_282096001_282355201_4FGL_J0957.8+3423_daily_bin165.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/604429/ft2_4FGL_J0957.8+3423_daily_bin165.fits
.....................!
real 11.86
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604429/ft1_filtered_4FGL_J0957.8+3423_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/604429/ft2_4FGL_J0957.8+3423_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/604429/ltcube_282096001_282355201_4FGL_J0957.8+3423_daily_bin165.fits outfile=/scratch/kocevski/604429/expmap_282096001_282355201_4FGL_J0957.8+3423_daily_bin165.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/604429/ltcube_282096001_282355201_4FGL_J0957.8+3423_daily_bin165.fits
.....................!
real 195.60
user 185.80
sys 4.62

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/604429/ft1_filtered_4FGL_J0957.8+3423_daily_bin165.fits scfile=/scratch/kocevski/604429/ft2_4FGL_J0957.8+3423_daily_bin165.fits outfile=/scratch/kocevski/604429/cmap_282096001_282355201_4FGL_J0957.8+3423_daily_bin165.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 1.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8643       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.712       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9040       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4210       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.848       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.613       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.648       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84157       1.0000         .10000E-03   10000.    
    16 'norm      '    14.994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.989       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .77064       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0167       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=   5309.393     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3415 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5833        4.4682        .55060E-06   -.22835E-03
   2  Prefactor     .10000E-03    10.019        .70713E-05** at limit **
   3  Prefactor     1.8642        2.1510       -.34400E-07   -.94472E-04
   4  norm          1.6046        1.7330       -.16869E-06   -.38139E-03
   5  Prefactor     11.714        10.544       -.43131E-07   -.24897E-04
   6  norm          .10000E-03    2.7924        .49314E-06** at limit **
   7  Prefactor     2.9043        2.0419       -.73308E-08   -.11608E-03
   8  Prefactor     2.4217        3.4567        .13531E-05   -.52012E-03
   9  norm          4.6156        12.262       -.30056E-05   -.54357E-04
  10  Prefactor     28.853        20.693        .34427E-05   -.26028E-05
  11  Prefactor     .10000E-03    13.427       -.46627E-05** at limit **
  12  Prefactor     37.623        29.316        .10806E-04    .39399E-04
  13  Prefactor     15.650        7.8017       -.54808E-07   -.49881E-04
  14  Prefactor     .10000E-03    2.8027       -.47027E-06** at limit **
  15  Prefactor     .84198        2.3041       -.48829E-06   -.10976E-02
  16  norm          14.994        8.5979        .99579E-07   -.15520E-04
  17  Prefactor     .10000E-03    .95010       -.11383E-07** at limit **
  18  Prefactor     55.989        35.483       -.22376E-06    .48001E-05
  19  Prefactor     .10000E-03    1.6641        .68938E-07** at limit **
  20  norm          15.275        10.555        .68824E-07    .25353E-04
  21  Prefactor     .10000E-03    13.287       -.40864E-05** at limit **
  22  Prefactor     .10000E-03    27.188       -.83784E-05** at limit **
  23  Prefactor     .10000E-03    1.4226        .35937E-08** at limit **
  24  Prefactor     .10000E-03    2.4382        .58174E-07** at limit **
  25  Prefactor     .10000E-03    9.0451       -.33004E-05** at limit **
  26  Prefactor     .10000E-03    20.667        .12324E-04** at limit **
  27  Normalizat    .76998        .17348       -.22177E-05    .58044E-04
  28  Prefactor     1.0175        .19838        .32062E-06   -.58543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58332
  Prefactor  = 0.0001
  Prefactor  = 1.86423
  norm       = 1.60459
  Prefactor  = 11.714
  norm       = 0.0001
  Prefactor  = 2.90428
  Prefactor  = 2.42168
  norm       = 4.61558
  Prefactor  = 28.8532
  Prefactor  = 0.0001
  Prefactor  = 37.6231
  Prefactor  = 15.6504
  Prefactor  = 0.0001
  Prefactor  = 0.841979
  norm       = 14.9943
  Prefactor  = 0.0001
  Prefactor  = 55.9889
  Prefactor  = 0.0001
  norm       = 15.275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.769984
  Prefactor  = 1.0175
 **********
 **   18 **HESSE 
 **********

 FCN=   5309.393     FROM HESSE     STATUS=OK           523 CALLS     3938 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5833        4.4653        .13081E-03   -1.5235    
   2  Prefactor     .10000E-03    10.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8642        2.1415        .11062E-03   -1.5435    
   4  norm          1.6046        1.7149        .95324E-04   -1.5455    
   5  Prefactor     11.714        10.539        .11706E-03   -1.5023    
   6  norm          .10000E-03    2.8061        .11885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9043        2.0385        .83518E-04   -1.5367    
   8  Prefactor     2.4217        3.4111        .15154E-03   -1.5397    
   9  norm          4.6156        12.253        .18729E-03   -1.5278    
  10  Prefactor     28.853        20.701        .74592E-04   -1.4633    
  11  Prefactor     .10000E-03    13.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.623        29.265        .65350E-04   -1.4480    
  13  Prefactor     15.650        7.7863        .10125E-03   -1.4917    
  14  Prefactor     .10000E-03    2.8080        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .84198        2.3144        .16985E-03   -1.5524    
  16  norm          14.994        8.5969        .10344E-03   -1.4933    
  17  Prefactor     .10000E-03    .95525        .69334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     55.989        35.571        .53610E-04   -1.4210    
  19  Prefactor     .10000E-03    1.6864        .91725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.275        10.557        .10249E-03   -1.4926    
  21  Prefactor     .10000E-03    13.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4314        .84835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.4606        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.0441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    20.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76998        .20078        .23666E-03   -1.0119    
  28  Prefactor     1.0175        .23131        .25274E-03   -.92149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13384e-09
Minuit parameter uncertainties:
  1  4.46553
  2  7.14722e-07
  3  2.14161
  4  1.71498
  5  10.5408
  6  1.1704e-06
  7  2.03854
  8  3.4114
  9  12.2598
  10  20.7066
  11  9.05884e-05
  12  29.2759
  13  7.78676
  14  1.7823e-06
  15  2.31467
  16  8.59758
  17  1.64632e-06
  18  35.5848
  19  4.34957e-06
  20  10.5578
  21  7.56256e-06
  22  5.67692e-05
  23  2.818e-06
  24  8.94465e-06
  25  6.04348e-06
  26  1.35372e-05
  27  0.200975
  28  0.23154
Done.

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

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.782e-06  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.017e+00  2.315e-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.700e-01  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/604429/likelihoodResults_282096001_282355201_4FGL_J0957.8+3423_daily_bin165.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): 102
logL (Free Index) = 5309.39496484
delta logL = -0.00168413524261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5309.39328037
delta logL = 3.31137016474e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1423       1.0000          .0000       10.000    
     3 'Normalizat'    .76999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0175       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=   5309.393     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      236 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10321E-03    2.4581        .12140E-01** at limit **
   2  Index         2.0306        6.0124        .50000        .47897E-04
   3  Normalizat    .76998        .34929E-02    .23666E-03    .34828E-04
   4  Prefactor     1.0175        .42592E-02    .25274E-03    .75029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103206
  Index      = 2.03061
  Normalizat = 0.769982
  Prefactor  = 1.0175
 **********
 **   18 **HESSE 
 **********

 FCN=   5309.393     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10321E-03    63.970        .12572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0306        5.2236        .50000       -.63587    
   3  Normalizat    .76998        .18188E-01    .94663E-05   -1.0119    
   4  Prefactor     1.0175        .22177E-01    .10110E-04   -.92148    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03613e-07
Minuit parameter uncertainties:
  1  0.0286738
  2  404.882
  3  0.0181877
  4  0.0221772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604429': 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): 102
logL (Free Index) = 5309.39327938
delta logL = 1.31675005832e-06

Extracting fit parameters...

4FGL J0957.8+3423
   Spectrum: PowerLaw
286    Prefactor:  1.032e-04  2.867e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.031e+00  4.049e+02  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.017e+00  2.218e-02  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.700e-01  1.819e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.471 34.398

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/604429/cmap_HighResolution_282096001_282355201_4FGL_J0957.8+3423_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2021-09-01 07:23:32.051349', job_id='604429', GAL2='1.02', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630506212.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='165' AND source_name='4FGL J0957.8+3423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:23:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 604429: <4FGL_J0957.8+3423_daily_bin165> in cluster <slac> Done

Job <4FGL_J0957.8+3423_daily_bin165> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 07:10:56 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:10:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 07:10:57 2021
Terminated at Wed Sep  1 07:23:32 2021
Results reported at Wed Sep  1 07:23:32 2021

Your job looked like:

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

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

