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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1026
RA = 157.077, Dec = 31.1389
tmin = 505267201, tmax = 505526401
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='901531', job_status='RUN', time_executed='2021-09-01 23:09:12.116566', time_epoch_executed='1630562952.12' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901531

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901531/ft1_4FGL_J1028.3+3108_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901531/ft1_4FGL_J1028.3+3108_daily_bin1026.fits outfile=/scratch/kocevski/901531/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1026.fits ra=157.077 dec=31.1389 rad=12.0 tmin=505267201.0 tmax=505526401.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.64
user 3.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.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/901531/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1026.fits evtable="EVENTS" outfile="/scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.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.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/901531/ltcube_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.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/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits
.....................!
real 14.40
user 14.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/901531/ltcube_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.fits outfile=/scratch/kocevski/901531/expmap_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.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/901531/ltcube_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.fits
.....................!
real 192.34
user 186.73
sys 5.16

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

Setting source of interest to:
4FGL J1028.3+3108 @ 157.077 31.1389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits scfile=/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits outfile=/scratch/kocevski/901531/cmap_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.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=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits scfile=/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits outfile=/scratch/kocevski/901531/cmap_HighResolution_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.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=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901531/Model_4FGL_J1028.3+3108_daily_bin1026.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/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits.....................!
real 51.96
user 50.72
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits', '/scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits', expMap='/scratch/kocevski/901531/expmap_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.fits', expCube='/scratch/kocevski/901531/ltcube_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/901531/Model_4FGL_J1028.3+3108_daily_bin1026.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1028.3+3108'

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/901531/ft1_filtered_4FGL_J1028.3+3108_daily_bin1026.fits
Spacecraft file(s): /scratch/kocevski/901531/ft2_4FGL_J1028.3+3108_daily_bin1026.fits
Exposure map: /scratch/kocevski/901531/expmap_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.fits
Exposure cube: /scratch/kocevski/901531/ltcube_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/901531/Model_4FGL_J1028.3+3108_daily_bin1026.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) = 6149.35529766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.784       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.564       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .99054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.397       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4833       1.0000         .10000E-03   10000.    
     9 'norm      '    19.023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7678       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28839       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.630       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5641       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7715       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.993       1.0000         .10000E-03   10000.    
    25 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99805       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97982       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6149.329     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3309 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7409        .12366E-05** at limit **
   2  Prefactor     15.783        9.7196        .34947E-06   -.55606E-04
   3  Prefactor     .10000E-03    8.9824       -.18118E-05** at limit **
   4  Prefactor     .10000E-03    .97356        .17006E-07** at limit **
   5  norm          10.562        9.1013        .13942E-06   -.93756E-04
   6  Prefactor     .98969        4.9003        .20127E-05   -.14959E-03
   7  Prefactor     32.395        43.620       -.19016E-05   -.21886E-03
   8  Prefactor     1.4820        5.0576       -.35039E-06   -.16341E-03
   9  norm          19.023        13.393        .17333E-06   -.16954E-03
  10  Prefactor     .10000E-03    17.242       -.16332E-06** at limit **
  11  Prefactor     .10000E-03    10.782        .45671E-06** at limit **
  12  Prefactor     13.376        6.0231        .10482E-06   -.16260E-03
  13  Prefactor     5.5228        3.8468       -.35086E-07   -.70215E-04
  14  Prefactor     .10000E-03    2.6474        .43919E-07** at limit **
  15  Prefactor     .10000E-03    10.729        .17603E-06** at limit **
  16  Prefactor     .10000E-03    .70543        .50979E-08** at limit **
  17  Prefactor     4.7629        10.274        .94710E-06    .43906E-04
  18  Prefactor     .10015E-03    22.922       -.35744E-06** at limit **
  19  Prefactor     10.632        9.9160       -.37907E-06   -.16616E-03
  20  Prefactor     3.5601        9.4760        .87477E-05   -.54522E-03
  21  norm          2.7713        .51034        .60891E-07   -.91534E-03
  22  Prefactor     .10000E-03    2.0390       -.71299E-06** at limit **
  23  Prefactor     17.444        22.094        .33841E-05    .38852E-03
  24  Prefactor     16.998        18.889       -.45701E-05   -.76535E-03
  25  norm          .10000E-03    6.0367        .22302E-06** at limit **
  26  Normalizat    .99774        .19088       -.15958E-05   -.24926E-04
  27  Prefactor     .98033        .20197       -.86256E-06   -.52539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 15.7826
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.5622
  Prefactor  = 0.989688
  Prefactor  = 32.3951
  Prefactor  = 1.48199
  norm       = 19.0232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3765
  Prefactor  = 5.52278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76286
  Prefactor  = 0.000100155
  Prefactor  = 10.6322
  Prefactor  = 3.56012
  norm       = 2.77126
  Prefactor  = 0.0001
  Prefactor  = 17.4444
  Prefactor  = 16.9984
  norm       = 0.0001
  Normalizat = 0.997741
  Prefactor  = 0.980328
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.329     FROM HESSE     STATUS=OK           496 CALLS     3805 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.783        9.7246        .10081E-03   -1.4913    
   3  Prefactor     .10000E-03    9.1810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .98410        .75503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.562        9.0990        .12327E-03   -1.5058    
   6  Prefactor     .98969        4.0748        .26116E-03   -1.5509    
   7  Prefactor     32.395        44.087        .70399E-04   -1.4569    
   8  Prefactor     1.4820        4.5525        .24453E-03   -1.5464    
   9  norm          19.023        13.373        .91829E-04   -1.4835    
  10  Prefactor     .10000E-03    17.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.376        6.0257        .10952E-03   -1.4976    
  13  Prefactor     5.5228        3.8482        .12431E-03   -1.5238    
  14  Prefactor     .10000E-03    2.6663        .12458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .71067        .64281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7629        10.239        .18426E-03   -1.5271    
  18  Prefactor     .10015E-03    28.408        .10920       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.632        9.8912        .12289E-03   -1.5056    
  20  Prefactor     3.5601        9.7634        .10704E-02   -1.5331    
  21  norm          2.7713        .51573        .21554E-04   -1.5375    
  22  Prefactor     .10000E-03    2.1075        .21941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.444        22.696        .95916E-04   -1.4872    
  24  Prefactor     16.998        19.907        .97160E-04   -1.4883    
  25  norm          .10000E-03    6.0448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99774        .22223        .25634E-03   -.93106    
  27  Prefactor     .98033        .23497        .28929E-03   -.93388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54146e-09
Minuit parameter uncertainties:
  1  0.000159445
  2  9.72558
  3  0.000194232
  4  2.26104e-06
  5  9.10019
  6  4.01664
  7  44.1314
  8  4.55354
  9  13.3755
  10  2.76845e-05
  11  6.6293e-05
  12  6.02598
  13  3.84833
  14  3.2596e-06
  15  2.69487e-05
  16  2.88819e-07
  17  10.2427
  18  0.00419744
  19  9.89276
  20  9.7678
  21  0.515733
  22  4.72437e-05
  23  22.7075
  24  19.9151
  25  1.75959e-05
  26  0.222439
  27  0.23521
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.768e-05  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.803e-01  2.352e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.977e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901531/likelihoodResults_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.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) = 6149.32973491
delta logL = -0.000275958585007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6149.32946033
delta logL = -1.37867391459e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4979       1.0000          .0000       10.000    
     3 'Normalizat'    .99774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   6149.329     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10294E-03    4.9142        .18142E-01** at limit **
   2  Index         2.4191        6.4699        .50000        .25760E-04
   3  Normalizat    .99774        .27180E-02    .25634E-03   -.38503E-03
   4  Prefactor     .98033        .30589E-02    .28929E-03   -.21163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102945
  Index      = 2.41915
  Normalizat = 0.997738
  Prefactor  = 0.98033
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.329     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10294E-03    49.965        .27851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4191        5.7454        .50000       -.54237    
   3  Normalizat    .99774        .86958E-02    .51268E-04   -.93106    
   4  Prefactor     .98033        .97865E-02    .11571E-04   -.93388    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.06897e-09
Minuit parameter uncertainties:
  1  0.024281
  2  163.196
  3  0.00869584
  4  0.0097865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901531': 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) = 6149.32945994
delta logL = -9.88078681985e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.029e-04  2.428e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.419e+00  1.632e+02  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.803e-01  9.786e-03  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.977e-01  8.696e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 157.077 31.139

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/901531/cmap_HighResolution_505267201_505526401_4FGL_J1028.3+3108_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-01 23:21:46.630790', job_id='901531', GAL2='0.98', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630563706.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-9.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1026' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:21:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 901531: <4FGL_J1028.3+3108_daily_bin1026> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1026> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:05:55 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:08: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 23:08:59 2021
Terminated at Wed Sep  1 23:21:47 2021
Results reported at Wed Sep  1 23:21:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1026 157.077 31.1389 505267201 505526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1028.3+3108 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   750.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            952 sec.

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

