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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin238
RA = 157.077, Dec = 31.1389
tmin = 301017601, tmax = 301276801
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='896979', job_status='RUN', time_executed='2021-09-01 22:53:53.411856', time_epoch_executed='1630562033.41' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896979/ft1_4FGL_J1028.3+3108_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896979/ft2_4FGL_J1028.3+3108_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896979/ft1_4FGL_J1028.3+3108_daily_bin238.fits outfile=/scratch/kocevski/896979/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin238.fits ra=157.077 dec=31.1389 rad=12.0 tmin=301017601.0 tmax=301276801.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.54
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896979/ft1_filtered_4FGL_J1028.3+3108_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/896979/ft2_4FGL_J1028.3+3108_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/896979/ltcube_301017601_301276801_4FGL_J1028.3+3108_daily_bin238.fits outfile=/scratch/kocevski/896979/expmap_301017601_301276801_4FGL_J1028.3+3108_daily_bin238.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/896979/ltcube_301017601_301276801_4FGL_J1028.3+3108_daily_bin238.fits
.....................!
real 191.06
user 186.23
sys 4.32

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/896979/ft1_filtered_4FGL_J1028.3+3108_daily_bin238.fits scfile=/scratch/kocevski/896979/ft2_4FGL_J1028.3+3108_daily_bin238.fits outfile=/scratch/kocevski/896979/cmap_301017601_301276801_4FGL_J1028.3+3108_daily_bin238.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6226       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.627       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0533       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2047       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3706       1.0000         .10000E-03   10000.    
     9 'norm      '    .15960E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .44531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.143       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .59406       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5215       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.012       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.255       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0918       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86326       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=   6097.001     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3346 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.653       -.48295E-07** at limit **
   2  Prefactor     9.6219        7.6269        .74096E-06   -.11892E-04
   3  Prefactor     .10000E-03    2.4564       -.53974E-10** at limit **
   4  Prefactor     .10000E-03    1.2178        .37483E-07** at limit **
   5  norm          24.626        10.541        .60094E-08   -.10889E-04
   6  Prefactor     1.0521        5.1398       -.33597E-06   -.21766E-03
   7  Prefactor     2.2060        17.352        .75703E-05   -.10401E-04
   8  Prefactor     2.3739        7.0499        .63814E-06    .92320E-04
   9  norm          .10000E-03    14.707        .24048E-06** at limit **
  10  Prefactor     12.186        29.880        .42150E-05   -.10595E-04
  11  Prefactor     .10000E-03    9.4395       -.13667E-07** at limit **
  12  Prefactor     6.0214        3.6940        .44035E-07   -.74655E-04
  13  Prefactor     .10000E-03    2.7662        .15127E-06** at limit **
  14  Prefactor     .43044        3.7473       -.22902E-06    .36697E-04
  15  Prefactor     10.180        18.496       -.87937E-07   -.97401E-05
  16  Prefactor     .10000E-03    1.2423        .96462E-07** at limit **
  17  Prefactor     12.367        8.4513        .12380E-06    .12350E-04
  18  Prefactor     13.141        23.051        .66116E-06   -.87099E-05
  19  Prefactor     .10000E-03    2.8853       -.23166E-06** at limit **
  20  Prefactor     .10000E-03    3.3322        .40294E-07** at limit **
  21  norm          .59406        .21277        .17164E-08   -.10571E-03
  22  Prefactor     1.5213        2.3304        .15580E-06   -.71946E-05
  23  Prefactor     22.012        16.260        .10017E-06   -.10681E-04
  24  Prefactor     .10000E-03    5.1631       -.14239E-07** at limit **
  25  norm          18.254        14.413        .11838E-06   -.76326E-05
  26  Normalizat    1.0918        .17490       -.10089E-05   -.93630E-05
  27  Prefactor     .86332        .19053        .82459E-07   -.25102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.62195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.626
  Prefactor  = 1.05213
  Prefactor  = 2.20598
  Prefactor  = 2.37394
  norm       = 0.0001
  Prefactor  = 12.1861
  Prefactor  = 0.0001
  Prefactor  = 6.02141
  Prefactor  = 0.0001
  Prefactor  = 0.43044
  Prefactor  = 10.1805
  Prefactor  = 0.0001
  Prefactor  = 12.3668
  Prefactor  = 13.1406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.59406
  Prefactor  = 1.52128
  Prefactor  = 22.0121
  Prefactor  = 0.0001
  norm       = 18.254
  Normalizat = 1.09178
  Prefactor  = 0.863324
 **********
 **   18 **HESSE 
 **********

 FCN=   6097.001     FROM HESSE     STATUS=OK           500 CALLS     3846 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6219        7.6324        .64593E-03   -1.5087    
   3  Prefactor     .10000E-03    2.4595        .11951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2582        .16809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.626        10.538        .80721E-04   -1.4715    
   6  Prefactor     1.0521        3.8812        .21784E-03   -1.5503    
   7  Prefactor     2.2060        17.337        .13853E-02   -1.5411    
   8  Prefactor     2.3739        5.9755        .21511E-03   -1.5400    
   9  norm          .10000E-03    15.285        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.186        29.772        .11467E-03   -1.5010    
  11  Prefactor     .10000E-03    9.4423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0214        3.6938        .56352E-03   -1.5217    
  13  Prefactor     .10000E-03    2.7944        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .43044        19.984        .27756E-02   -1.5577    
  15  Prefactor     10.180        18.488        .12559E-03   -1.5070    
  16  Prefactor     .10000E-03    1.8662        .16454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.367        8.4134        .11391E-03   -1.5004    
  18  Prefactor     13.141        23.050        .11049E-03   -1.4983    
  19  Prefactor     .10000E-03    2.8866        .12950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3353        .13915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .59406        .21343        .20663E-04   -1.5554    
  22  Prefactor     1.5213        2.3082        .14080E-03   -1.5461    
  23  Prefactor     22.012        16.265        .85372E-04   -1.4769    
  24  Prefactor     .10000E-03    5.1687        .17322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.254        14.401        .93741E-04   -1.4853    
  26  Normalizat    1.0918        .20462        .22130E-03   -.90016    
  27  Prefactor     .86332        .22430        .28709E-03   -.97435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38611e-10
Minuit parameter uncertainties:
  1  1.96624e-05
  2  7.6332
  3  1.88231e-06
  4  1.93631e-06
  5  10.5393
  6  3.88216
  7  12.3732
  8  5.97704
  9  3.27224e-06
  10  29.8081
  11  2.43237e-06
  12  3.69395
  13  5.17068e-06
  14  5.86722
  15  18.4981
  16  1.30211e-05
  17  8.41424
  18  23.0661
  19  9.57688e-07
  20  1.74055e-07
  21  0.213433
  22  2.30831
  23  16.2682
  24  2.19389e-07
  25  14.4033
  26  0.204768
  27  0.224542
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.219e+01  2.981e+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:  8.633e-01  2.245e-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.092e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/896979/likelihoodResults_301017601_301276801_4FGL_J1028.3+3108_daily_bin238.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) = 6096.86565926
delta logL = 0.135532359872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6096.86509642
delta logL = 0.136095199642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.061       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6805       1.0000          .0000       10.000    
     3 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85634       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=   6096.865     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      259 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.053        51.778        .74319E-04    .38325E-03
   2  Index         1.6806        .88507        .12073E-01    .21370E-03
   3  Normalizat    1.0972        .18692        .22079E-03   -.32355E-03
   4  Prefactor     .85639        .21928        .28805E-03   -.33877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.0535
  Index      = 1.68063
  Normalizat = 1.09722
  Prefactor  = 0.856394
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.865     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.053        51.164        .14864E-04   -1.4629    
   2  Index         1.6806        .87522        .48291E-03   -.72599    
   3  Normalizat    1.0972        .18705        .44158E-04   -.89841    
   4  Prefactor     .85639        .21944        .57609E-04   -.97682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46834e-09
Minuit parameter uncertainties:
  1  51.241
  2  0.883414
  3  0.187161
  4  0.219668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896979': 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) = 6096.86509636
delta logL = 0.136095264406

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.905e+01  5.124e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.681e+00  8.834e-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.564e-01  2.197e-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.097e+00  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/896979/cmap_HighResolution_301017601_301276801_4FGL_J1028.3+3108_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-01 23:06:46.241908', job_id='896979', GAL2='0.86', fit_tolerance='1e-08', EG2='1.10', EG='1.09', time_epoch_completed='1630562806.24', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.36e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='238' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 896979: <4FGL_J1028.3+3108_daily_bin238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin238 157.077 31.1389 301017601 301276801 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 :                                   770.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            973 sec.

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

