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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin22
RA = 157.077, Dec = 31.1389
tmin = 245030401, tmax = 245289601
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='895566', job_status='RUN', time_executed='2021-09-01 22:46:04.433141', time_epoch_executed='1630561564.43' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895566/ft1_4FGL_J1028.3+3108_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895566/ft1_4FGL_J1028.3+3108_daily_bin22.fits outfile=/scratch/kocevski/895566/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin22.fits ra=157.077 dec=31.1389 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.47
user 1.28
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.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/895566/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/895566/ft1_filtered_4FGL_J1028.3+3108_daily_bin22.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.53
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895566/ft1_filtered_4FGL_J1028.3+3108_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/895566/ltcube_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.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/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits
.....................!
real 18.62
user 18.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895566/ft1_filtered_4FGL_J1028.3+3108_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/895566/ltcube_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.fits outfile=/scratch/kocevski/895566/expmap_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.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/895566/ltcube_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.fits
.....................!
real 192.88
user 187.75
sys 4.68

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/895566/ft1_filtered_4FGL_J1028.3+3108_daily_bin22.fits scfile=/scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits outfile=/scratch/kocevski/895566/cmap_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895566/ft1_filtered_4FGL_J1028.3+3108_daily_bin22.fits scfile=/scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits outfile=/scratch/kocevski/895566/cmap_HighResolution_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/895566/ft1_filtered_4FGL_J1028.3+3108_daily_bin22.fits', '/scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits', expMap='/scratch/kocevski/895566/expmap_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.fits', expCube='/scratch/kocevski/895566/ltcube_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/895566/Model_4FGL_J1028.3+3108_daily_bin22.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/895566/ft1_filtered_4FGL_J1028.3+3108_daily_bin22.fits
Spacecraft file(s): /scratch/kocevski/895566/ft2_4FGL_J1028.3+3108_daily_bin22.fits
Exposure map: /scratch/kocevski/895566/expmap_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.fits
Exposure cube: /scratch/kocevski/895566/ltcube_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/895566/Model_4FGL_J1028.3+3108_daily_bin22.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) = 4885.67124188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10737E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.9305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.501       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5803       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13764E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0036       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.822       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.3359       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2952       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77623       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4885.653     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     3233 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5090        .41797E-05** at limit **
   2  Prefactor     .10000E-03    6.6913       -.68961E-05** at limit **
   3  Prefactor     .10001E-03    4.5894       -.42622E-06** at limit **
   4  Prefactor     .10000E-03    .81420        .33601E-07** at limit **
   5  norm          .10000E-03    5.5296        .73902E-06** at limit **
   6  Prefactor     .10000E-03    2.6766       -.13824E-06** at limit **
   7  Prefactor     26.866        7.7843        .17470E-05   -.10603E-02
   8  Prefactor     .10000E-03    2.0386        .27225E-06** at limit **
   9  norm          9.9227        1.2884        .24274E-06    .60830E-03
  10  Prefactor     .10000E-03    25.926       -.62427E-05** at limit **
  11  Prefactor     .10000E-03    15.883        .70158E-05** at limit **
  12  Prefactor     10.500        5.3570        .46068E-05    .31007E-03
  13  Prefactor     .10000E-03    2.8951       -.54701E-06** at limit **
  14  Prefactor     .10000E-03    2.3284       -.21080E-06** at limit **
  15  Prefactor     .10001E-03    5.6201       -.28883E-05** at limit **
  16  Prefactor     1.5804        2.0523       -.12748E-06    .43172E-04
  17  Prefactor     .10000E-03    2.9868        .14707E-06** at limit **
  18  Prefactor     .10000E-03    6.8518       -.60785E-05** at limit **
  19  Prefactor     20.022        1.0148       -.11722E-06    .19615E-03
  20  Prefactor     .10003E-03    367.03       -.23977E-04** at limit **
  21  norm          1.0034        .34362        .17809E-06   -.62148E-03
  22  Prefactor     .10000E-03    2.5057       -.51474E-06** at limit **
  23  Prefactor     17.841        16.477       -.11770E-04    .22796E-04
  24  Prefactor     .10000E-03    5.8081        .48660E-05** at limit **
  25  norm          4.3339        1.6975        .18931E-05    .34481E-05
  26  Normalizat    1.2957        .21656        .88248E-06    .17098E-03
  27  Prefactor     .77582        .24708       -.23519E-05    .62352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8659
  Prefactor  = 0.0001
  norm       = 9.92268
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.4997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.58038
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 20.022
  Prefactor  = 0.000100033
  norm       = 1.00339
  Prefactor  = 0.0001
  Prefactor  = 17.8414
  Prefactor  = 0.0001
  norm       = 4.33386
  Normalizat = 1.29571
  Prefactor  = 0.775823
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.653     FROM HESSE     STATUS=OK           542 CALLS     3775 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    9.6267        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .80655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.4771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.866        46.247        .19339E-02   -1.4671    
   8  Prefactor     .10000E-03    2.0235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.9227        12.265        .31790E-02   -1.5078    
  10  Prefactor     .10000E-03    25.934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.500        5.5019        .30911E-02   -1.5060    
  13  Prefactor     .10000E-03    2.8550        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    9.5975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5804        2.0826        .84465E-02   -1.5457    
  17  Prefactor     .10000E-03    2.9834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.022        11.523        .22377E-02   -1.4813    
  20  Prefactor     .10003E-03    12.945        .90917E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0034        .34329        .51426E-02   -1.5508    
  22  Prefactor     .10000E-03    2.4231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.841        16.570        .23718E-02   -1.4863    
  24  Prefactor     .10000E-03    11.188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.3339        8.0144        .48362E-02   -1.5292    
  26  Normalizat    1.2957        .18660        .48197E-01   -.83695    
  27  Prefactor     .77582        .20933        .69240E-01   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38937e-08
Minuit parameter uncertainties:
  1  0.000197893
  2  0.000395041
  3  0.000637412
  4  1.32951e-06
  5  3.28283e-05
  6  1.01444e-05
  7  46.3089
  8  1.43121e-05
  9  12.2683
  10  3.58037e-05
  11  0.000184434
  12  5.5022
  13  1.52919e-05
  14  1.06724e-05
  15  0.000513009
  16  2.08268
  17  2.06327e-05
  18  0.0004983
  19  11.5242
  20  0.00130006
  21  0.343287
  22  3.01135e-06
  23  16.5745
  24  3.95667e-05
  25  8.01636
  26  0.186701
  27  0.209545
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.580e-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:  7.758e-01  2.095e-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:  1.296e+00  1.867e-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: 5.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895566/likelihoodResults_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.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) = 4885.65360088
delta logL = -0.000183462142559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4885.65341811
delta logL = -6.86864041199e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4287       1.0000          .0000       10.000    
     3 'Normalizat'    1.2957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77582       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=   4885.653     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    97.032        .18142E-02** at limit **
   2  Index         2.3655        8.3331        .50000        .15303E-04
   3  Normalizat    1.2957        .99338E-02    .21307E-03   -.15536E-03
   4  Prefactor     .77582        .11406E-01    .30637E-03   -.75922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010171
  Index      = 2.36553
  Normalizat = 1.2957
  Prefactor  = 0.775825
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.653     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    421.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3655        8.4602        .50000       -.55494    
   3  Normalizat    1.2957        .21155E-01    .42613E-04   -.83695    
   4  Prefactor     .77582        .24290E-01    .12255E-04   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.77393e-09
Minuit parameter uncertainties:
  1  0.0540785
  2  367.084
  3  0.0211554
  4  0.0242904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895566': 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) = 4885.65341784
delta logL = -4.23797246185e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.017e-04  5.408e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.366e+00  3.671e+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:  7.758e-01  2.429e-02  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:  1.296e+00  2.116e-02  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/895566/cmap_HighResolution_245030401_245289601_4FGL_J1028.3+3108_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2021-09-01 22:57:21.933451', job_id='895566', GAL2='0.78', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630562241.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-4.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='22' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 22:57:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 895566: <4FGL_J1028.3+3108_daily_bin22> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin22> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:35 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 22:45:44 2021
Terminated at Wed Sep  1 22:57:22 2021
Results reported at Wed Sep  1 22:57:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin22 157.077 31.1389 245030401 245289601 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 :                                   674.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             329.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            707 sec.

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

