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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin400
RA = 157.077, Dec = 31.1389
tmin = 343008001, tmax = 343267201
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='898352', job_status='RUN', time_executed='2021-09-01 22:57:53.266581', time_epoch_executed='1630562273.27' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898352/ft1_4FGL_J1028.3+3108_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898352/ft2_4FGL_J1028.3+3108_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898352/ft1_4FGL_J1028.3+3108_daily_bin400.fits outfile=/scratch/kocevski/898352/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin400.fits ra=157.077 dec=31.1389 rad=12.0 tmin=343008001.0 tmax=343267201.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.85
user 3.60
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898352/ft1_filtered_4FGL_J1028.3+3108_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/898352/ft2_4FGL_J1028.3+3108_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/898352/ltcube_343008001_343267201_4FGL_J1028.3+3108_daily_bin400.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/898352/ft2_4FGL_J1028.3+3108_daily_bin400.fits
.....................!
real 15.30
user 14.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898352/ft1_filtered_4FGL_J1028.3+3108_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/898352/ft2_4FGL_J1028.3+3108_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/898352/ltcube_343008001_343267201_4FGL_J1028.3+3108_daily_bin400.fits outfile=/scratch/kocevski/898352/expmap_343008001_343267201_4FGL_J1028.3+3108_daily_bin400.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/898352/ltcube_343008001_343267201_4FGL_J1028.3+3108_daily_bin400.fits
.....................!
real 192.10
user 186.86
sys 4.62

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/898352/ft1_filtered_4FGL_J1028.3+3108_daily_bin400.fits scfile=/scratch/kocevski/898352/ft2_4FGL_J1028.3+3108_daily_bin400.fits outfile=/scratch/kocevski/898352/cmap_343008001_343267201_4FGL_J1028.3+3108_daily_bin400.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898352/ft1_filtered_4FGL_J1028.3+3108_daily_bin400.fits scfile=/scratch/kocevski/898352/ft2_4FGL_J1028.3+3108_daily_bin400.fits outfile=/scratch/kocevski/898352/cmap_HighResolution_343008001_343267201_4FGL_J1028.3+3108_daily_bin400.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.1858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29866E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2894       1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.911       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.704       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4789       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4521       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97119       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.690       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0028       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1346       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4218       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11169E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .47241       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3339       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=   5906.667     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3399 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3642        69.799       -.53091E-06   -.35502E-05
   2  Prefactor     1.0114        5.2433        .59828E-06   -.15956E-03
   3  Prefactor     .10000E-03    3.7908        .14237E-06** at limit **
   4  Prefactor     .10000E-03    1.0110        .59941E-06** at limit **
   5  norm          7.1878        7.8970        .52457E-06   -.37171E-03
   6  Prefactor     9.0747        4.7762        .42648E-06    .63615E-03
   7  Prefactor     .10000E-03    7.5384        .34717E-07** at limit **
   8  Prefactor     .10000E-03    2.5145       -.10297E-05** at limit **
   9  norm          2.2886        5.6441        .47220E-05   -.43990E-03
  10  Prefactor     56.908        42.061        .32629E-06   -.17476E-04
  11  Prefactor     32.684        30.652        .68049E-06    .21148E-04
  12  Prefactor     5.4780        4.4971       -.53666E-06   -.76755E-04
  13  Prefactor     .10000E-03    2.4991       -.15543E-05** at limit **
  14  Prefactor     6.4530        6.0606        .35476E-07   -.27936E-03
  15  Prefactor     14.484        46.270        .26736E-05   -.11668E-04
  16  Prefactor     .10000E-03    .90224        .18478E-06** at limit **
  17  Prefactor     .98961        6.0849       -.16741E-05   -.39609E-04
  18  Prefactor     16.159        22.342        .42453E-06   -.70189E-05
  19  Prefactor     11.687        9.9819        .15712E-08   -.14477E-03
  20  Prefactor     .10000E-03    3.4981        .35929E-07** at limit **
  21  norm          2.0028        .40543        .18497E-08   -.17451E-03
  22  Prefactor     4.1347        2.7685        .99859E-07   -.73399E-04
  23  Prefactor     5.4163        16.295        .38198E-06    .26211E-04
  24  Prefactor     .10000E-03    10.850        .24894E-06** at limit **
  25  norm          .10000E-03    16.545        .76736E-06** at limit **
  26  Normalizat    .47221        .17450       -.15386E-05   -.18620E-03
  27  Prefactor     1.3342        .19076       -.38122E-06   -.26584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36421
  Prefactor  = 1.01136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.18784
  Prefactor  = 9.07466
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.28861
  Prefactor  = 56.9082
  Prefactor  = 32.6837
  Prefactor  = 5.47797
  Prefactor  = 0.000100002
  Prefactor  = 6.45299
  Prefactor  = 14.4844
  Prefactor  = 0.0001
  Prefactor  = 0.989612
  Prefactor  = 16.159
  Prefactor  = 11.6875
  Prefactor  = 0.0001
  norm       = 2.00281
  Prefactor  = 4.13472
  Prefactor  = 5.41632
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.472214
  Prefactor  = 1.3342
 **********
 **   18 **HESSE 
 **********

 FCN=   5906.667     FROM HESSE     STATUS=OK           502 CALLS     3901 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3642        69.403        .36951E-03   -1.5474    
   2  Prefactor     1.0114        9.2652        .31094E-02   -1.5507    
   3  Prefactor     .10000E-03    3.8055        .14611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6712        .14849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.1878        7.8823        .74819E-03   -1.5172    
   6  Prefactor     9.0747        4.4394        .51671E-03   -1.5105    
   7  Prefactor     .10000E-03    7.5430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.053        .20609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2886        5.7670        .13565E-02   -1.5405    
  10  Prefactor     56.908        42.061        .53176E-04   -1.4198    
  11  Prefactor     32.684        30.552        .70068E-04   -1.4564    
  12  Prefactor     5.4780        4.4729        .13014E-03   -1.5240    
  13  Prefactor     .10000E-03    2.6683        .12183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4530        5.9885        .15800E-03   -1.5200    
  15  Prefactor     14.484        46.105        .10517E-03   -1.4947    
  16  Prefactor     .10000E-03    9.3450        .13851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .98961        21.456        .32006E-02   -1.5509    
  18  Prefactor     16.159        22.331        .99588E-04   -1.4904    
  19  Prefactor     11.687        10.359        .11717E-03   -1.5024    
  20  Prefactor     .10000E-03    3.5047        .14035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0028        .40665        .20223E-04   -1.5425    
  22  Prefactor     4.1347        2.7640        .99390E-04   -1.5301    
  23  Prefactor     5.4163        16.254        .17258E-03   -1.5242    
  24  Prefactor     .10000E-03    10.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    17.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .47221        .19679        .30332E-03   -1.1372    
  27  Prefactor     1.3342        .22120        .22943E-03   -.82296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87733e-08
Minuit parameter uncertainties:
  1  19.4839
  2  6.12319
  3  1.36728e-05
  4  3.70189e-05
  5  7.8834
  6  4.43961
  7  1.03169e-05
  8  0.000501978
  9  5.76837
  10  42.0829
  11  30.5664
  12  4.47319
  13  0.000163135
  14  5.98907
  15  46.2186
  16  8.77007e-05
  17  9.21917
  18  22.3422
  19  10.3608
  20  4.23904e-06
  21  0.406646
  22  2.76411
  23  16.267
  24  7.96675e-05
  25  0.000208878
  26  0.197081
  27  0.22136
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  5.691e+01  4.208e+01  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:  1.334e+00  2.214e-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:  4.722e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.75
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.04e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 9.50e-06

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): 0
logL (Free Index) = 5906.63142205
delta logL = 0.035449876942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5906.62799271
delta logL = 0.0388792192907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.007       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0655       1.0000          .0000       10.000    
     3 'Normalizat'    .47744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3310       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=   5906.628     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.043        65.407        .24336E-03    .34196E-04
   2  Index         2.0652        .61646        .74133E-02    .33112E-03
   3  Normalizat    .47768        .17790        .30164E-03   -.32074E-04
   4  Prefactor     1.3307        .21734        .22969E-03    .65433E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.0433
  Index      = 2.06521
  Normalizat = 0.477676
  Prefactor  = 1.33073
 **********
 **   18 **HESSE 
 **********

 FCN=   5906.628     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.043        63.314        .48672E-04   -1.4056    
   2  Index         2.0652        .59661        .14827E-02   -.62730    
   3  Normalizat    .47768        .17789        .12065E-04   -1.1346    
   4  Prefactor     1.3307        .21743        .45938E-04   -.82398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29891e-11
Minuit parameter uncertainties:
  1  63.3765
  2  0.598791
  3  0.178101
  4  0.217579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898352': 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) = 5906.62799167
delta logL = 0.038880256915

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  6.804e+01  6.338e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.065e+00  5.988e-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:  1.331e+00  2.176e-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:  4.777e-01  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 157.077 31.139
Photon Index (Free Index): 2.07 +/- 0.60
Photon Flux (Free Index): 2.58e-08 +/- 2.54e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.59e-05

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/898352/cmap_HighResolution_343008001_343267201_4FGL_J1028.3+3108_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.04e-08', energy_flux2='1.53e-05', photon_flux_error='2.25e-08', dlogl='3.89e-02', energy_flux='1.29e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-01 23:09:15.187455', photon_index_error2='0.60', photon_index2='2.07', ts='5.75', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.47', time_epoch_completed='1630562955.19', return_code='0', job_id='898352', GAL2='1.33', EG2='0.48', return_code2='0', energy_flux_error='9.50e-06', photon_flux_error2='2.54e-08', ts2='5.81', photon_index='2.23' WHERE bin_id='400' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 898352: <4FGL_J1028.3+3108_daily_bin400> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin400> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 22:55:30 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:57:38 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:57:38 2021
Terminated at Wed Sep  1 23:09:15 2021
Results reported at Wed Sep  1 23:09:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin400 157.077 31.1389 343008001 343267201 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 :                                   678.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            825 sec.

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

