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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin280
RA = 157.077, Dec = 31.1389
tmin = 311904001, tmax = 312163201
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='897041', job_status='RUN', time_executed='2021-09-01 22:52:37.632068', time_epoch_executed='1630561957.63' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/897041

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/897041/ft1_4FGL_J1028.3+3108_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/897041/ft2_4FGL_J1028.3+3108_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/897041/ft1_4FGL_J1028.3+3108_daily_bin280.fits outfile=/scratch/kocevski/897041/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin280.fits ra=157.077 dec=31.1389 rad=12.0 tmin=311904001.0 tmax=312163201.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.46
user 3.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/897041/ft1_filtered_4FGL_J1028.3+3108_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/897041/ft2_4FGL_J1028.3+3108_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/897041/ltcube_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.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/897041/ft2_4FGL_J1028.3+3108_daily_bin280.fits
.....................!
real 14.70
user 14.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/897041/ft1_filtered_4FGL_J1028.3+3108_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/897041/ft2_4FGL_J1028.3+3108_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/897041/ltcube_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.fits outfile=/scratch/kocevski/897041/expmap_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.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/897041/ltcube_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.fits
.....................!
real 192.39
user 186.84
sys 5.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/897041/ft1_filtered_4FGL_J1028.3+3108_daily_bin280.fits scfile=/scratch/kocevski/897041/ft2_4FGL_J1028.3+3108_daily_bin280.fits outfile=/scratch/kocevski/897041/cmap_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/897041/ft1_filtered_4FGL_J1028.3+3108_daily_bin280.fits scfile=/scratch/kocevski/897041/ft2_4FGL_J1028.3+3108_daily_bin280.fits outfile=/scratch/kocevski/897041/cmap_HighResolution_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.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/897041/ft1_filtered_4FGL_J1028.3+3108_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/897041/ft2_4FGL_J1028.3+3108_daily_bin280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/897041/Model_4FGL_J1028.3+3108_daily_bin280.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/897041/ft1_filtered_4FGL_J1028.3+3108_daily_bin280.fits.....................!
real 52.23
user 50.79
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2393       1.0000         .10000E-03   10000.    
     5 'norm      '    6.6067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0837       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    84.380       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7718       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0062       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2595       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5291       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2987       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3152       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16081E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85791       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2214       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=   5881.130     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3351 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.287       -.27312E-06** at limit **
   2  Prefactor     6.4921        6.5936        .16388E-05   -.41590E-03
   3  Prefactor     .10000E-03    4.6313        .36863E-07** at limit **
   4  Prefactor     3.2391        2.2318       -.60814E-08   -.57447E-04
   5  norm          6.6069        7.9479        .10038E-07   -.35729E-04
   6  Prefactor     1.0834        3.6120        .12572E-05    .13832E-03
   7  Prefactor     24.410        36.904        .15408E-06    .10955E-04
   8  Prefactor     .10000E-03    3.5634       -.87347E-06** at limit **
   9  norm          .10000E-03    5.1613       -.23188E-06** at limit **
  10  Prefactor     84.399        66.415        .19698E-05    .12616E-03
  11  Prefactor     .10000E-03    58.953       -.11204E-05** at limit **
  12  Prefactor     1.7129        4.0285        .58981E-06    .92704E-06
  13  Prefactor     8.7708        6.3841        .92212E-06   -.89866E-04
  14  Prefactor     5.0048        9.1446       -.76007E-07   -.86659E-04
  15  Prefactor     7.4381        56.760       -.74124E-05   -.93456E-04
  16  Prefactor     1.2594        3.0470        .62418E-06   -.20199E-03
  17  Prefactor     1.5290        7.6994        .15783E-05   -.10583E-03
  18  Prefactor     .10000E-03    16.359        .57654E-07** at limit **
  19  Prefactor     7.8558        10.656       -.32385E-06   -.55184E-04
  20  Prefactor     5.3074        13.156        .34718E-06   -.20281E-03
  21  norm          1.3152        .33098        .89036E-08   -.37209E-04
  22  Prefactor     .10000E-03    2.1149        .33954E-06** at limit **
  23  Prefactor     .10000E-03    7.2041        .49931E-07** at limit **
  24  Prefactor     .10000E-03    5.6769        .19386E-06** at limit **
  25  norm          .10000E-03    5.2548        .22143E-07** at limit **
  26  Normalizat    .85810        .19193       -.77802E-06   -.51848E-04
  27  Prefactor     1.2212        .20344       -.60418E-06   -.37922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.49205
  Prefactor  = 0.0001
  Prefactor  = 3.23908
  norm       = 6.60685
  Prefactor  = 1.08337
  Prefactor  = 24.4096
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 84.3991
  Prefactor  = 0.0001
  Prefactor  = 1.71288
  Prefactor  = 8.77084
  Prefactor  = 5.0048
  Prefactor  = 7.43808
  Prefactor  = 1.25939
  Prefactor  = 1.52896
  Prefactor  = 0.0001
  Prefactor  = 7.85584
  Prefactor  = 5.30743
  norm       = 1.3152
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.858101
  Prefactor  = 1.22124
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.130     FROM HESSE     STATUS=OK           496 CALLS     3847 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4921        6.6200        .78750E-03   -1.5198    
   3  Prefactor     .10000E-03    4.6473        .16114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2391        2.2255        .91483E-04   -1.5348    
   5  norm          6.6069        7.9406        .15612E-03   -1.5194    
   6  Prefactor     1.0834        3.4738        .24253E-03   -1.5500    
   7  Prefactor     24.410        36.991        .81077E-04   -1.4719    
   8  Prefactor     .10000E-03    6.5704        .26231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.1907        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     84.399        67.173        .43731E-04   -1.3868    
  11  Prefactor     .10000E-03    59.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7129        3.9845        .22090E-03   -1.5446    
  13  Prefactor     8.7708        6.3786        .67668E-03   -1.5116    
  14  Prefactor     5.0048        8.9921        .17973E-03   -1.5261    
  15  Prefactor     7.4381        60.345        .14680E-03   -1.5162    
  16  Prefactor     1.2594        2.9746        .18213E-03   -1.5484    
  17  Prefactor     1.5290        7.4640        .34521E-03   -1.5461    
  18  Prefactor     .10000E-03    16.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8558        10.552        .14305E-03   -1.5147    
  20  Prefactor     5.3074        12.518        .17460E-03   -1.5247    
  21  norm          1.3152        .33151        .21440E-04   -1.5479    
  22  Prefactor     .10000E-03    10.547        .19750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.2405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.6909        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.2627        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85810        .22128        .26710E-03   -.97948    
  27  Prefactor     1.2212        .23896        .26251E-03   -.85680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01326e-09
Minuit parameter uncertainties:
  1  3.22894e-05
  2  6.62076
  3  7.53254e-08
  4  2.22557
  5  7.94187
  6  3.47447
  7  37.0261
  8  2.00366e-05
  9  8.75283e-07
  10  67.2338
  11  6.33721e-05
  12  3.98511
  13  6.37907
  14  8.99448
  15  42.4305
  16  2.97492
  17  6.75754
  18  7.47508e-07
  19  10.5547
  20  12.5243
  21  0.331508
  22  0.00044406
  23  4.53937e-06
  24  1.47302e-05
  25  9.93213e-07
  26  0.22151
  27  0.239174
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  8.440e+01  6.723e+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.221e+00  2.392e-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:  8.581e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.52e-05

TS (Fixed Index): 2.33
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/897041/likelihoodResults_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.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) = 5880.90853327
delta logL = 0.221960679913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5880.90395763
delta logL = 0.226536319941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.790       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6923       1.0000          .0000       10.000    
     3 'Normalizat'    .83178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2408       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=   5880.904     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      297 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.793        87.044        .59906E-04    .99746E-04
   2  Index         2.6919        .94946        .43745E-02    .10956E-03
   3  Normalizat    .83202        .21226        .27082E-03    .70567E-04
   4  Prefactor     1.2407        .24097        .26074E-03    .94320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.7935
  Index      = 2.69187
  Normalizat = 0.832018
  Prefactor  = 1.24067
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.904     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.793        68.479        .11981E-04   -1.4368    
   2  Index         2.6919        .74743        .17498E-03   -.47983    
   3  Normalizat    .83202        .21051        .10833E-04   -.98892    
   4  Prefactor     1.2407        .23937        .52147E-04   -.85089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64196e-11
Minuit parameter uncertainties:
  1  68.5995
  2  0.751016
  3  0.210715
  4  0.239577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/897041': 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) = 5880.90395624
delta logL = 0.226537712772

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.479e+01  6.860e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.692e+00  7.510e-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.241e+00  2.396e-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:  8.320e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 157.077 31.139
Photon Index (Free Index): 2.69 +/- 0.75
Photon Flux (Free Index): 6.61e-08 +/- 5.42e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.20e-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/897041/cmap_HighResolution_311904001_312163201_4FGL_J1028.3+3108_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.60e-05', photon_flux_error='3.59e-08', dlogl='2.27e-01', energy_flux='1.91e-05', photon_flux2='6.61e-08', job_status='DONE', time_completed='2021-09-01 23:05:00.410208', photon_index_error2='0.75', photon_index2='2.69', ts='2.33', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.20e-05', EG='0.86', time_epoch_completed='1630562700.41', return_code='0', job_id='897041', GAL2='1.24', EG2='0.83', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.42e-08', ts2='2.78', photon_index='2.23' WHERE bin_id='280' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:05:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 897041: <4FGL_J1028.3+3108_daily_bin280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin280 157.077 31.1389 311904001 312163201 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 :                                   739.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            861 sec.

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

