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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin133
RA = 157.077, Dec = 31.1389
tmin = 273801601, tmax = 274060801
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='896819', job_status='RUN', time_executed='2021-09-01 22:50:38.076181', time_epoch_executed='1630561838.08' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896819/ft1_4FGL_J1028.3+3108_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896819/ft2_4FGL_J1028.3+3108_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896819/ft1_4FGL_J1028.3+3108_daily_bin133.fits outfile=/scratch/kocevski/896819/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin133.fits ra=157.077 dec=31.1389 rad=12.0 tmin=273801601.0 tmax=274060801.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.07
user 2.80
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896819/ft1_filtered_4FGL_J1028.3+3108_daily_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/896819/ft2_4FGL_J1028.3+3108_daily_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/896819/ltcube_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.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/896819/ft2_4FGL_J1028.3+3108_daily_bin133.fits
.....................!
real 14.59
user 14.25
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896819/ft1_filtered_4FGL_J1028.3+3108_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/896819/ft2_4FGL_J1028.3+3108_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/896819/ltcube_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.fits outfile=/scratch/kocevski/896819/expmap_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.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/896819/ltcube_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.fits
.....................!
real 158.55
user 153.90
sys 4.20

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/896819/ft1_filtered_4FGL_J1028.3+3108_daily_bin133.fits scfile=/scratch/kocevski/896819/ft2_4FGL_J1028.3+3108_daily_bin133.fits outfile=/scratch/kocevski/896819/cmap_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896819/ft1_filtered_4FGL_J1028.3+3108_daily_bin133.fits scfile=/scratch/kocevski/896819/ft2_4FGL_J1028.3+3108_daily_bin133.fits outfile=/scratch/kocevski/896819/cmap_HighResolution_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.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.50
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0800       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0525       1.0000         .10000E-03   10000.    
     5 'norm      '    34.163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3295       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1143       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1410       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9187       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0433       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.4230       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87251       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=   6090.346     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     2277 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.253        1.0770       -.45894E-06    .60509E-03
   2  Prefactor     7.0804        1.0071        .64158E-07    .11403E-04
   3  Prefactor     6.3501        1.0113        .17542E-06   -.25420E-04
   4  Prefactor     5.0528        2.5258       -.18232E-07   -.18007E-04
   5  norm          34.163        1.0017        .19483E-07   -.50200E-04
   6  Prefactor     .10000E-03    1.2871       -.13972E-06** at limit **
   7  Prefactor     15.946        1.0368       -.32727E-06    .32547E-03
   8  Prefactor     2.3297        3.1811        .77571E-06   -.32186E-04
   9  norm          .10000E-03    2.5506        .21673E-06** at limit **
  10  Prefactor     .10002E-03    8.1485       -.47352E-05** at limit **
  11  Prefactor     .10000E-03    23.786        .39916E-04** at limit **
  12  Prefactor     3.0715        2.8064       -.61050E-06   -.46208E-04
  13  Prefactor     6.1161        1.0282        .72024E-07   -.48037E-05
  14  Prefactor     .10000E-03    3.9021       -.20289E-07** at limit **
  15  Prefactor     .10000E-03    8.0357       -.10107E-04** at limit **
  16  Prefactor     1.1405        2.1942        .96457E-07    .18956E-03
  17  Prefactor     17.355        1.0044       -.68849E-07   -.49577E-04
  18  Prefactor     .10000E-03    55.074       -.23231E-04** at limit **
  19  Prefactor     .10000E-03    8.9487        .11888E-04** at limit **
  20  Prefactor     1.9191        1.0441       -.20289E-06   -.24538E-04
  21  norm          1.0433        .29040       -.40477E-08   -.34606E-03
  22  Prefactor     .10000E-03    1.9405       -.11992E-06** at limit **
  23  Prefactor     .10001E-03    13.805       -.23158E-04** at limit **
  24  Prefactor     .10000E-03    5.8274        .10700E-05** at limit **
  25  norm          5.4096        1.2449        .83687E-06   -.30537E-03
  26  Normalizat    1.1281        .19942       -.48094E-07   -.85511E-04
  27  Prefactor     .87275        .22904       -.52170E-07   -.48108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2529
  Prefactor  = 7.08042
  Prefactor  = 6.35013
  Prefactor  = 5.05276
  norm       = 34.1627
  Prefactor  = 0.0001
  Prefactor  = 15.9465
  Prefactor  = 2.32974
  norm       = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.000100002
  Prefactor  = 3.07152
  Prefactor  = 6.11606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14048
  Prefactor  = 17.3552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91915
  norm       = 1.04327
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 5.40963
  Normalizat = 1.12807
  Prefactor  = 0.872752
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.346     FROM HESSE     STATUS=OK           546 CALLS     2823 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.253        26.645        .23436E-02   -1.4853    
   2  Prefactor     7.0804        5.9109        .37690E-02   -1.5176    
   3  Prefactor     6.3501        10.033        .39823E-02   -1.5204    
   4  Prefactor     5.0528        2.5400        .44722E-02   -1.5258    
   5  norm          34.163        10.791        .17140E-02   -1.4538    
   6  Prefactor     .10000E-03    1.2803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.946        22.052        .25074E-02   -1.4909    
   8  Prefactor     2.3297        3.2341        .67174E-02   -1.5403    
   9  norm          .10000E-03    2.5479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    21.150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0715        2.8086        .57859E-02   -1.5357    
  13  Prefactor     6.1161        5.4936        .40591E-02   -1.5213    
  14  Prefactor     .10000E-03    3.8572        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1405        2.2580        .10878E-01   -1.5494    
  17  Prefactor     17.355        10.401        .24035E-02   -1.4875    
  18  Prefactor     .10000E-03    54.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9191        14.895        .75001E-02   -1.5431    
  21  norm          1.0433        .29067        .48715E-02   -1.5504    
  22  Prefactor     .10000E-03    1.8965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    19.578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.8219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.4096        14.289        .43139E-02   -1.5243    
  26  Normalizat    1.1281        .17986        .36951E-01   -.88856    
  27  Prefactor     .87275        .19917        .67694E-01   -.97100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16028e-07
Minuit parameter uncertainties:
  1  26.6622
  2  5.91142
  3  10.0353
  4  2.54009
  5  10.7919
  6  2.32978e-06
  7  22.0632
  8  3.23438
  9  6.26633e-06
  10  0.00138833
  11  0.000479039
  12  2.8087
  13  5.49405
  14  1.44525e-07
  15  1.21009e-05
  16  2.25812
  17  10.4018
  18  7.97483e-05
  19  1.25298e-05
  20  10.6966
  21  0.29067
  22  3.02737e-06
  23  0.000863906
  24  7.39931e-06
  25  14.2982
  26  0.179953
  27  0.199331
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.388e-03  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:  8.728e-01  1.993e-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.128e+00  1.800e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896819/likelihoodResults_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.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) = 6090.34581268
delta logL = -0.000224968858674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6090.3455908
delta logL = -3.08560811391e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0426       1.0000          .0000       10.000    
     3 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87275       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.

 FCN=   6090.346     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      245 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.310        .90712E-02** at limit **
   2  Index         3.0120        6.2314        .50000        .30333E-04
   3  Normalizat    1.1281        .69387E-02    .36958E-01   -.16766E-03
   4  Prefactor     .87275        .81181E-02    .67694E-01   -.96153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.01199
  Normalizat = 1.12807
  Prefactor  = 0.872752
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.346     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1719.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0120        6.4941        .50000       -.40890    
   3  Normalizat    1.1281        .88319E-01    .22930E-03   -.88856    
   4  Prefactor     .87275        .10315        .29947E-03   -.97100    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28042e-07
Minuit parameter uncertainties:
  1  0.0011222
  2  63.4301
  3  0.0883304
  4  0.103177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896819': 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) = 6090.34559055
delta logL = -2.8431395549e-06

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.122e-03  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  3.012e+00  6.343e+01  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:  8.728e-01  1.032e-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.128e+00  8.833e-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/896819/cmap_HighResolution_273801601_274060801_4FGL_J1028.3+3108_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-01 23:00:28.305057', job_id='896819', GAL2='0.87', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630562428.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-2.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='133' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 896819: <4FGL_J1028.3+3108_daily_bin133> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin133> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:50:20 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:50:29 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:50:29 2021
Terminated at Wed Sep  1 23:00:29 2021
Results reported at Wed Sep  1 23:00:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin133 157.077 31.1389 273801601 274060801 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            609 sec.

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

