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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin92
RA = 157.077, Dec = 31.1389
tmin = 263174401, tmax = 263433601
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='895674', job_status='RUN', time_executed='2021-09-01 22:48:02.094073', time_epoch_executed='1630561682.09' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895674

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895674/ft1_4FGL_J1028.3+3108_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895674/ft2_4FGL_J1028.3+3108_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895674/ft1_4FGL_J1028.3+3108_daily_bin92.fits outfile=/scratch/kocevski/895674/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin92.fits ra=157.077 dec=31.1389 rad=12.0 tmin=263174401.0 tmax=263433601.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.41
user 1.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895674/ft1_filtered_4FGL_J1028.3+3108_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/895674/ft2_4FGL_J1028.3+3108_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/895674/ltcube_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.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/895674/ft2_4FGL_J1028.3+3108_daily_bin92.fits
.....................!
real 16.29
user 15.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895674/ft1_filtered_4FGL_J1028.3+3108_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/895674/ft2_4FGL_J1028.3+3108_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/895674/ltcube_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.fits outfile=/scratch/kocevski/895674/expmap_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.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/895674/ltcube_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.fits
.....................!
real 192.22
user 186.83
sys 4.99

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/895674/ft1_filtered_4FGL_J1028.3+3108_daily_bin92.fits scfile=/scratch/kocevski/895674/ft2_4FGL_J1028.3+3108_daily_bin92.fits outfile=/scratch/kocevski/895674/cmap_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895674/ft1_filtered_4FGL_J1028.3+3108_daily_bin92.fits scfile=/scratch/kocevski/895674/ft2_4FGL_J1028.3+3108_daily_bin92.fits outfile=/scratch/kocevski/895674/cmap_HighResolution_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.480       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2208       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9911       1.0000         .10000E-03   10000.    
     5 'norm      '    19.234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29148E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69872E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    18.963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.764       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.986       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.535       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2089       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4992       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12906E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1302       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78506       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=   4624.635     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3393 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.487        39.438        .12914E-05    .71952E-04
   2  Prefactor     1.2189        7.8365       -.22957E-05    .21750E-03
   3  Prefactor     .10000E-03    2.7838       -.35482E-09** at limit **
   4  Prefactor     3.9917        2.8424        .25414E-06    .40656E-03
   5  norm          19.235        9.8575        .36431E-06    .18035E-03
   6  Prefactor     .10000E-03    2.8421       -.21841E-05** at limit **
   7  Prefactor     .10000E-03    13.116        .74576E-07** at limit **
   8  Prefactor     .68186E-01    3.0573        .47298E-06   -.25824E-06
   9  norm          18.949        12.975       -.27788E-05   -.60037E-03
  10  Prefactor     35.766        58.670        .51184E-07   -.51957E-04
  11  Prefactor     .10000E-03    10.565        .57414E-06** at limit **
  12  Prefactor     .23805        25.083        .19394E-04   -.64370E-04
  13  Prefactor     .10000E-03    1.7329        .47690E-06** at limit **
  14  Prefactor     6.5046        8.9984        .32863E-06    .85024E-04
  15  Prefactor     44.916        50.853       -.35903E-05    .96348E-04
  16  Prefactor     1.1755        2.0531       -.13841E-06    .10449E-03
  17  Prefactor     .10000E-03    6.4845        .29879E-07** at limit **
  18  Prefactor     .10000E-03    30.304        .32525E-06** at limit **
  19  Prefactor     11.534        10.312        .14600E-06    .24577E-04
  20  Prefactor     .10000E-03    5.3736        .36834E-08** at limit **
  21  norm          1.2089        .38831        .50677E-09   -.28267E-03
  22  Prefactor     .10000E-03    .92226        .15825E-07** at limit **
  23  Prefactor     8.4928        13.469       -.81528E-07    .46102E-05
  24  Prefactor     .10000E-03    45.794       -.18493E-07** at limit **
  25  norm          .10000E-03    5.7067        .76461E-07** at limit **
  26  Normalizat    1.1302        .19621       -.10837E-05   -.16251E-03
  27  Prefactor     .78499        .21546       -.50716E-06   -.28778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.4872
  Prefactor  = 1.21895
  Prefactor  = 0.0001
  Prefactor  = 3.99172
  norm       = 19.2352
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0681857
  norm       = 18.9486
  Prefactor  = 35.7657
  Prefactor  = 0.0001
  Prefactor  = 0.238048
  Prefactor  = 0.0001
  Prefactor  = 6.50456
  Prefactor  = 44.9165
  Prefactor  = 1.17554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5342
  Prefactor  = 0.0001
  norm       = 1.20886
  Prefactor  = 0.0001
  Prefactor  = 8.4928
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.13022
  Prefactor  = 0.784986
 **********
 **   18 **HESSE 
 **********

 FCN=   4624.635     FROM HESSE     STATUS=OK           486 CALLS     3879 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.487        39.493        .63002E-04   -1.4435    
   2  Prefactor     1.2189        7.5809        .35144E-03   -1.5487    
   3  Prefactor     .10000E-03    2.7857        .11081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9917        2.8437        .91829E-04   -1.5308    
   5  norm          19.235        9.8646        .91326E-04   -1.4831    
   6  Prefactor     .10000E-03    23.402        .18770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .68186E-01    57.801        .20694E-02   -1.5656    
   9  norm          18.949        13.093        .91975E-04   -1.4837    
  10  Prefactor     35.766        58.706        .67012E-04   -1.4511    
  11  Prefactor     .10000E-03    10.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .23805        26.189        .23281E-02   -1.5610    
  13  Prefactor     .10000E-03    1.7392        .87497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5046        8.9747        .15736E-03   -1.5198    
  15  Prefactor     44.916        50.882        .59776E-04   -1.4367    
  16  Prefactor     1.1755        1.9996        .12150E-03   -1.5491    
  17  Prefactor     .10000E-03    6.5256        .16896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.534        10.302        .11795E-03   -1.5029    
  20  Prefactor     .10000E-03    5.3901        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2089        .38954        .22685E-04   -1.5488    
  22  Prefactor     .10000E-03    .92780        .63758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4928        13.483        .13750E-03   -1.5125    
  24  Prefactor     .10000E-03    46.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.7195        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1302        .22482        .22020E-03   -.88787    
  27  Prefactor     .78499        .24565        .29848E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04002e-08
Minuit parameter uncertainties:
  1  39.5186
  2  6.08061
  3  5.3437e-06
  4  2.84379
  5  9.86539
  6  0.000383515
  7  4.54882e-05
  8  3.97143
  9  13.0946
  10  58.8014
  11  3.42287e-05
  12  4.99491
  13  7.71904e-06
  14  8.97658
  15  50.931
  16  1.9997
  17  2.34516e-05
  18  0.000140436
  19  10.3035
  20  1.75638e-05
  21  0.389537
  22  5.11488e-06
  23  13.4876
  24  0.000219061
  25  1.77823e-05
  26  0.22501
  27  0.245991
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.577e+01  5.880e+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:  7.850e-01  2.460e-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.130e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/895674/likelihoodResults_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.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): 0
logL (Free Index) = 4624.43919184
delta logL = 0.196076129097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4624.4309097
delta logL = 0.204358262609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.689       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9583       1.0000          .0000       10.000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80021       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=   4624.431     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      294 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.684        152.30        .10826E-03   -.72923E-03
   2  Index         2.9595        2.7810        .61144E-02   -.34023E-03
   3  Normalizat    1.1069        .22254        .22220E-03   -.79917E-03
   4  Prefactor     .80028        .25156        .29583E-03   -.61979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6836
  Index      = 2.95952
  Normalizat = 1.10688
  Prefactor  = 0.800281
 **********
 **   18 **HESSE 
 **********

 FCN=   4624.431     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.684        38.875        .21651E-04   -1.4968    
   2  Index         2.9595        1.2530        .24458E-03   -.42037    
   3  Normalizat    1.1069        .21641        .44440E-04   -.89531    
   4  Prefactor     .80028        .24521        .59167E-04   -.99718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3401e-09
Minuit parameter uncertainties:
  1  38.9472
  2  1.26932
  3  0.216588
  4  0.245548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895674': 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) = 4624.4309065
delta logL = 0.204361471009

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.368e+01  3.895e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.960e+00  1.269e+00  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.003e-01  2.455e-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.107e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
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/895674/cmap_HighResolution_263174401_263433601_4FGL_J1028.3+3108_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-09-01 22:59:09.486773', job_id='895674', GAL2='0.80', fit_tolerance='1e-08', EG2='1.11', EG='1.13', time_epoch_completed='1630562349.49', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.04e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='92' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 22:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 895674: <4FGL_J1028.3+3108_daily_bin92> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin92> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:47 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:57 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:57 2021
Terminated at Wed Sep  1 22:59:10 2021
Results reported at Wed Sep  1 22:59:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin92 157.077 31.1389 263174401 263433601 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            803 sec.

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

