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


Performing analysis on: 4FGL_J1657.0+6010_daily_bin747
RA = 254.258, Dec = 60.1676
tmin = 432950401, tmax = 433209601
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='206741', job_status='RUN', time_executed='2021-09-16 04:48:17.860549', time_epoch_executed='1631792897.86' WHERE source_name='4FGL J1657.0+6010' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206741/ft1_4FGL_J1657.0+6010_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206741/ft1_4FGL_J1657.0+6010_daily_bin747.fits outfile=/scratch/kocevski/206741/ft1_filteredMKT_4FGL_J1657.0+6010_daily_bin747.fits ra=254.258 dec=60.1676 rad=12.0 tmin=432950401.0 tmax=433209601.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.71
user 5.46
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.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/206741/ft1_filteredMKT_4FGL_J1657.0+6010_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/206741/ltcube_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.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/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits
.....................!
real 14.68
user 14.24
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/206741/ltcube_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.fits outfile=/scratch/kocevski/206741/expmap_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.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/206741/ltcube_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.fits
.....................!
real 191.80
user 185.78
sys 5.10

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 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1657.0+6010 @ 254.258 60.1676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits scfile=/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits outfile=/scratch/kocevski/206741/cmap_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.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=254.258 yref=60.1676 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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits scfile=/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits outfile=/scratch/kocevski/206741/cmap_HighResolution_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.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=254.258 yref=60.1676 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206741/Model_4FGL_J1657.0+6010_daily_bin747.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/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits.....................!
real 39.57
user 37.64
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits', '/scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits', expMap='/scratch/kocevski/206741/expmap_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.fits', expCube='/scratch/kocevski/206741/ltcube_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/206741/Model_4FGL_J1657.0+6010_daily_bin747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1657.0+6010'

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  3.318e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/206741/ft1_filtered_4FGL_J1657.0+6010_daily_bin747.fits
Spacecraft file(s): /scratch/kocevski/206741/ft2_4FGL_J1657.0+6010_daily_bin747.fits
Exposure map: /scratch/kocevski/206741/expmap_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.fits
Exposure cube: /scratch/kocevski/206741/ltcube_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/206741/Model_4FGL_J1657.0+6010_daily_bin747.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) = 3356.32227846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.697       1.0000         .10000E-03   10000.    
     2 'Prefactor '    187.35       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.584       1.0000         .10000E-03   10000.    
     4 'norm      '    23.308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.073       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.401       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    25.463       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48362E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6659       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.128       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.147       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.195       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.203       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.788       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .74284E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .64773       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    29.267       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .85081       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3356.285     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4580 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.684        13.161        .14305E-06   -.61720E-06
   2  Prefactor     188.82        387.84        .25077E-05   -.90348E-05
   3  Prefactor     26.585        25.543        .16711E-06   -.46502E-05
   4  norm          23.355        30.913        .21910E-07   -.66717E-05
   5  Prefactor     49.633        159.40        .43253E-05    .26708E-05
   6  Prefactor     .10000E-03    11.459        .39079E-06** at limit **
   7  norm          .10000E-03    83.810        .13459E-05** at limit **
   8  Prefactor     16.406        16.777        .69886E-07   -.14348E-04
   9  Prefactor     .10000E-03    70.439        .46966E-06** at limit **
  10  norm          25.469        18.599        .13976E-06   -.14400E-04
  11  Prefactor     .10000E-03    2.2023        .17901E-06** at limit **
  12  Prefactor     .10000E-03    34.932        .13507E-05** at limit **
  13  Prefactor     .10027E-03    29.193       -.20211E-06** at limit **
  14  norm          1.6657        1.1958        .19129E-07   -.69055E-04
  15  Prefactor     17.132        12.483        .18344E-06   -.29230E-04
  16  Prefactor     37.148        21.738        .11612E-06   -.26791E-04
  17  Prefactor     13.200        12.407       -.22082E-06   -.87903E-04
  18  Prefactor     .10000E-03    7.9875       -.21120E-06** at limit **
  19  Prefactor     18.202        8.0725        .33031E-07   -.44061E-05
  20  Prefactor     .10000E-03    51.768        .17233E-06** at limit **
  21  norm          .10000E-03    4.3183        .96497E-07** at limit **
  22  Prefactor     .10000E-03    2.1145        .74942E-07** at limit **
  23  Prefactor     .10000E-03    36.992        .10185E-06** at limit **
  24  Prefactor     14.979        342.43       -.13592E-05   -.64782E-05
  25  norm          .10000E-03    1.9782        .28885E-06** at limit **
  26  Prefactor     .10000E-03    51.965        .21970E-06** at limit **
  27  Prefactor     .10008E-03    17.837        .26935E-05** at limit **
  28  Prefactor     .58201        54.005       -.37662E-05    .20975E-03
  29  Prefactor     .10000E-03    25.711        .42932E-06** at limit **
  30  Prefactor     .10000E-03    211.48        .40166E-06** at limit **
  31  norm          29.269        19.069       -.43019E-06   -.10870E-04
  32  Normalizat    .84923        .39847       -.70549E-05   -.18041E-03
  33  Prefactor     .98711        .29736        .26254E-05   -.94721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.6845
  Prefactor  = 188.818
  Prefactor  = 26.5851
  norm       = 23.3552
  Prefactor  = 49.6329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.4064
  Prefactor  = 0.0001
  norm       = 25.4688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100269
  norm       = 1.66574
  Prefactor  = 17.1318
  Prefactor  = 37.1476
  Prefactor  = 13.2002
  Prefactor  = 0.0001
  Prefactor  = 18.2022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9794
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.582014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.2689
  Normalizat = 0.849234
  Prefactor  = 0.987113
 **********
 **   18 **HESSE 
 **********

 FCN=   3356.285     FROM HESSE     STATUS=OK           699 CALLS     5279 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.684        13.152        .12250E-03   -1.5054    
   2  Prefactor     188.82        387.49        .14751E-03   -1.2951    
   3  Prefactor     26.585        25.545        .77697E-04   -1.4676    
   4  norm          23.355        30.895        .82968E-04   -1.4741    
   5  Prefactor     49.633        159.85        .28336E-03   -1.4298    
   6  Prefactor     .10000E-03    11.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    84.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.406        16.724        .98897E-04   -1.4898    
   9  Prefactor     .10000E-03    70.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.469        18.541        .79386E-04   -1.4698    
  11  Prefactor     .10000E-03    2.2146        .83978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10027E-03    260.18        .59980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6657        1.1836        .49351E-04   -1.5450    
  15  Prefactor     17.132        12.477        .96775E-04   -1.4880    
  16  Prefactor     37.148        21.741        .65757E-04   -1.4488    
  17  Prefactor     13.200        12.300        .11027E-03   -1.4981    
  18  Prefactor     .10000E-03    7.9837        .15969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.202        8.0730        .93876E-04   -1.4854    
  20  Prefactor     .10000E-03    51.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3241        .11758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1178        .82281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.979        337.06        .10415E-03   -1.4934    
  25  norm          .10000E-03    2.0252        .79593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    52.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10008E-03    148.95        .43522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .58201        534.62        .72292E-02   -1.5555    
  29  Prefactor     .10000E-03    25.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    211.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          29.269        19.156        .74058E-04   -1.4625    
  32  Normalizat    .84923        .40231        .33031E-03   -.98268    
  33  Prefactor     .98711        .29977        .24512E-03   -.93160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27799e-08
Minuit parameter uncertainties:
  1  13.1557
  2  392.923
  3  25.5559
  4  30.9157
  5  161.258
  6  1.07516e-05
  7  0.000101926
  8  16.7286
  9  0.00011459
  10  18.5449
  11  1.74705e-06
  12  6.71874e-05
  13  0.0168081
  14  1.18358
  15  12.479
  16  21.7455
  17  12.3025
  18  3.00166e-05
  19  8.07348
  20  6.24761e-05
  21  2.85781e-06
  22  2.70373e-06
  23  2.72726e-05
  24  143.032
  25  3.1482e-06
  26  0.000158583
  27  0.00698124
  28  35.5993
  29  1.20712e-05
  30  6.27383e-05
  31  19.1596
  32  0.403737
  33  0.300274
Done.

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

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.003e-04  1.681e-02  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  9.871e-01  3.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  8.492e-01  4.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 254.258 60.168
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206741/likelihoodResults_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.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) = 3356.28467332
delta logL = -1.76495909727e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3356.28467331
delta logL = -1.76471630766e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4480       1.0000          .0000       10.000    
     3 'Normalizat'    .84923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3355.861     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      317 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .81236E-02    .32753E-03** at limit **
   2  Index         8.6814        8.1947        .22103        .65055E-04
   3  Normalizat    .78165        .71247E-01    .77388E-01   -.35757E-04
   4  Prefactor     1.0257        .56645E-01    .46106E-01   -.66246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.68139
  Normalizat = 0.781653
  Prefactor  = 1.02571
 **********
 **   18 **HESSE 
 **********

 FCN=   3355.861     FROM HESSE     STATUS=OK            33 CALLS      350 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .23576E-02    .11496E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.6814        .60816        .89255E-02    .82755    
   3  Normalizat    .78165        .35798        .34257E-03   -1.0075    
   4  Prefactor     1.0257        .28516        .24100E-03   -.91877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47894e-11
Minuit parameter uncertainties:
  1  1.5622e-09
  2  0.611481
  3  0.359059
  4  0.285582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206741': 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) = 3355.86097178
delta logL = 0.423683889697

Extracting fit parameters...

4FGL J1657.0+6010
   Spectrum: PowerLaw
375    Prefactor:  1.000e-04  1.562e-09  1.000e-04  1.000e+04 ( 1.000e-13)
376        Index:  8.681e+00  6.115e-01  0.000e+00  1.000e+01 (-1.000e+00)
377        Scale:  9.922e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.026e+00  2.856e-01  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  7.817e-01  3.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 254.258 60.168

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/206741/cmap_HighResolution_432950401_433209601_4FGL_J1657.0+6010_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-16 05:01:22.125311', job_id='206741', GAL2='1.03', fit_tolerance='1e-08', EG2='0.78', EG='0.85', time_epoch_completed='1631793682.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.24e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='747' AND source_name='4FGL J1657.0+6010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 05:01:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 206741: <4FGL_J1657.0+6010_daily_bin747> in cluster <slac> Done

Job <4FGL_J1657.0+6010_daily_bin747> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 04:45:37 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 04:48:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 04:48:08 2021
Terminated at Thu Sep 16 05:01:22 2021
Results reported at Thu Sep 16 05:01:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1657.0+6010_daily_bin747 254.258 60.1676 432950401 433209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1657.0+6010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             315.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            945 sec.

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

