/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 212 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 = 7461
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1028.4-0234_daily_bin1003
RA = 157.121, Dec = -2.5829
tmin = 499305601, tmax = 499564801
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='910040', job_status='RUN', time_executed='2021-09-01 23:39:19.074991', time_epoch_executed='1630564759.08' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/910040

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/910040/ft1_4FGL_J1028.4-0234_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/910040/ft1_4FGL_J1028.4-0234_daily_bin1003.fits outfile=/scratch/kocevski/910040/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin1003.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.51
user 5.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.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/910040/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/910040/ltcube_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.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/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits
.....................!
real 16.70
user 16.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/910040/ltcube_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.fits outfile=/scratch/kocevski/910040/expmap_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.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/910040/ltcube_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.fits
.....................!
real 191.99
user 187.22
sys 4.31

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J1028.4-0234 @ 157.121 -2.5829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits scfile=/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits outfile=/scratch/kocevski/910040/cmap_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.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.121 yref=-2.5829 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits scfile=/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits outfile=/scratch/kocevski/910040/cmap_HighResolution_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.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.121 yref=-2.5829 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/910040/Model_4FGL_J1028.4-0234_daily_bin1003.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/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits.....................!
real 55.84
user 54.41
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits', '/scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits', expMap='/scratch/kocevski/910040/expmap_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.fits', expCube='/scratch/kocevski/910040/ltcube_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/910040/Model_4FGL_J1028.4-0234_daily_bin1003.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1028.4-0234'

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.582e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/910040/ft1_filtered_4FGL_J1028.4-0234_daily_bin1003.fits
Spacecraft file(s): /scratch/kocevski/910040/ft2_4FGL_J1028.4-0234_daily_bin1003.fits
Exposure map: /scratch/kocevski/910040/expmap_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.fits
Exposure cube: /scratch/kocevski/910040/ltcube_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/910040/Model_4FGL_J1028.4-0234_daily_bin1003.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) = 5605.12643851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7769       1.0000         .10000E-03   10000.    
     2 'norm      '    .15548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    82.179       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0764       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.180       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7325       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10944E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2454       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5460       1.0000         .10000E-03   10000.    
    15 'norm      '    .45240       1.0000         .10000E-03   10000.    
    16 'norm      '    17.513       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2367       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .76569       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5605.109     FROM MIGRAD    STATUS=FAILED       685 CALLS     2507 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7770        .82215        .44289E-04   -.49876E-03
   2  norm          .15556        2.0786        .15331E-02    .59673E-02
   3  Prefactor     .10000E-03    18.836        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.533        .18142E-02** at limit **
   5  Prefactor     82.182        40.941        .44308E-04   -.51830E-04
   6  norm          .10000E-03    7.6028        .18142E-02** at limit **
   7  Prefactor     3.0583        55.491        .23126E-03    .12683E-04
   8  Prefactor     25.254        86.220        .79830E-04    .16947E-04
   9  Prefactor     1.7843        6464.4        .31890E-03    .11622E-04
  10  Prefactor     .10000E-03    148.05        .52152E-02** at limit **
  11  norm          4.5981        1.8287        .61128E-04   -.23899E-03
  12  Prefactor     .10000E-03    3.0708        .12764E-02** at limit **
  13  Prefactor     3.2448        3.3518        .66120E-03   -.31343E-03
  14  Prefactor     2.5480        7.1518        .25592E-03   -.93334E-04
  15  norm          .45241        .52743        .49694E-03    .35872E-03
  16  norm          17.516        10.313        .95705E-04   -.92537E-04
  17  Prefactor     5.2364        8.9048        .17565E-03    .77019E-05
  18  Normalizat    .76576        .24684        .31261E-03   -.85827E-05
  19  Prefactor     1.0809        .18328        .20692E-03    .15369E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5605.109     FROM SIMPLEX   STATUS=UNCHANGED    823 CALLS     3330 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7770        .82215        .10764E-06   -1.5441    
   2  norm          .15556        2.0786        .88448E-06   -1.5629    
   3  Prefactor     .10000E-03    18.836        .66619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.533        .72330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     82.182        40.941        .71426E-07   -1.3892    
   6  norm          .10000E-03    7.6028        .43381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0583        55.491        .40475E-06   -1.5358    
   8  Prefactor     25.254        86.220        .58778E-06   -1.4702    
   9  Prefactor     1.7843        6464.4        .61633E-04   -1.5441    
  10  Prefactor     .10000E-03    148.05        .87230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5981        1.8287        .80449E-07   -1.5279    
  12  Prefactor     .10000E-03    3.0708        .22587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2448        3.3518        .11051E-06   -1.5348    
  14  Prefactor     2.5480        7.1518        .25735E-06   -1.5389    
  15  norm          .45241        .52743        .11610E-06   -1.5573    
  16  norm          17.516        10.313        .16608E-06   -1.4871    
  17  Prefactor     5.2364        8.9048        .17185E-06   -1.5250    
  18  Normalizat    .76576        .24684        .27991E-06   -1.0135    
  19  Prefactor     1.0809        .18328        .54840E-07   -.90079    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5605.109     FROM MIGRAD    STATUS=CONVERGED    257 CALLS     3587 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7770        .82213        .17716E-05   -.37057E-05
   2  norm          .15557        2.0774        .30662E-03    .11828E-04
   3  Prefactor     .10000E-03    18.844        .36285E-03** at limit **
   4  Prefactor     .10000E-03    14.533        .36285E-03** at limit **
   5  Prefactor     82.182        40.942        .88616E-05   -.15395E-06
   6  norm          .10000E-03    7.6029        .36285E-03** at limit **
   7  Prefactor     3.0585        51.742        .92502E-05   -.73741E-05
   8  Prefactor     25.254        85.136        .31932E-05   -.28482E-05
   9  Prefactor     1.7826        6357.7        .12756E-04   -.19607E-05
  10  Prefactor     .10000E-03    148.45        .10430E-02** at limit **
  11  norm          4.5981        1.8286        .24451E-05   -.65094E-05
  12  Prefactor     .10000E-03    3.0712        .25528E-03** at limit **
  13  Prefactor     3.2448        3.3508        .26448E-04   -.25791E-05
  14  Prefactor     2.5481        7.1493        .10237E-04   -.44424E-06
  15  norm          .45241        .52779        .19878E-04   -.22877E-05
  16  norm          17.516        10.313        .38282E-05     .0000    
  17  Prefactor     5.2364        8.9128        .70261E-05   -.32361E-06
  18  Normalizat    .76576        .24699        .12504E-04   -.47277E-05
  19  Prefactor     1.0809        .18333        .41384E-04   -.62634E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77695
  norm       = 0.155567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.1821
  norm       = 0.0001
  Prefactor  = 3.05855
  Prefactor  = 25.2538
  Prefactor  = 1.78261
  Prefactor  = 0.0001
  norm       = 4.5981
  Prefactor  = 0.0001
  Prefactor  = 3.24481
  Prefactor  = 2.54806
  norm       = 0.452412
  norm       = 17.5159
  Prefactor  = 5.23642
  Normalizat = 0.765757
  Prefactor  = 1.08091
 **********
 **   18 **HESSE 
 **********

 FCN=   5605.109     FROM HESSE     STATUS=OK           250 CALLS     3837 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7770        .82202        .36815E-06   -1.5441    
   2  norm          .15557        2.0765        .12265E-04   -1.5629    
   3  Prefactor     .10000E-03    18.844        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.533        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     82.182        40.941        .88616E-05   -1.3892    
   6  norm          .10000E-03    7.6029        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0585        44.113        .18500E-05   -1.5358    
   8  Prefactor     25.254        82.905        .63864E-06   -1.4702    
   9  Prefactor     1.7826        6134.3        .25512E-05   -1.5441    
  10  Prefactor     .10000E-03    148.46        .20861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.5981        1.8289        .48902E-06   -1.5279    
  12  Prefactor     .10000E-03    3.0713        .51056E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2448        3.3504        .10579E-05   -1.5348    
  14  Prefactor     2.5481        7.1496        .20473E-05   -1.5389    
  15  norm          .45241        .52773        .79511E-06   -1.5573    
  16  norm          17.516        10.312        .38282E-05   -1.4871    
  17  Prefactor     5.2364        8.9079        .14052E-05   -1.5250    
  18  Normalizat    .76576        .24711        .25009E-05   -1.0135    
  19  Prefactor     1.0809        .18327        .82769E-05   -.90079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60696e-12
Minuit parameter uncertainties:
  1  0.822025
  2  1.13641
  3  8.46391e-07
  4  2.32232e-07
  5  40.9547
  6  5.24245e-08
  7  23.2514
  8  83.2863
  9  136.167
  10  0.000248011
  11  1.82894
  12  4.96988e-08
  13  3.35057
  14  7.15201
  15  0.527733
  16  10.3132
  17  8.91011
  18  0.247473
  19  0.183381
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.000e-04  4.970e-08  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.081e+00  1.834e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  7.658e-01  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 157.121 -2.583
Photon Flux Upper Limit: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/910040/likelihoodResults_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5605.11071395
delta logL = -0.00154842514439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5605.10916557
delta logL = -4.4067746785e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6112       1.0000          .0000       10.000    
     3 'Normalizat'    .76574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+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=   5605.109     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    272.41        .12767E-02** at limit **
   2  Index         2.5838        5.2167        .50000        .45422E-05
   3  Normalizat    .76576        .53482E-01    .31261E-03    .53459E-05
   4  Prefactor     1.0809        .41679E-01    .20692E-03    .11868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010008
  Index      = 2.58382
  Normalizat = 0.765757
  Prefactor  = 1.08091
 **********
 **   18 **HESSE 
 **********

 FCN=   5605.109     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    23.220        .25534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5838        5.9568        .50000       -.50435    
   3  Normalizat    .76576        .23240        .12505E-04   -1.0135    
   4  Prefactor     1.0809        .18124        .82768E-05   -.90079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66756e-08
Minuit parameter uncertainties:
  1  0.00272276
  2  423.669
  3  0.232704
  4  0.18134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/910040': 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) = 5605.1091655
delta logL = 2.48483047471e-08

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  1.001e-04  2.723e-03  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  2.584e+00  4.237e+02  0.000e+00  1.000e+01 (-1.000e+00)
237        Scale:  6.037e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  1.081e+00  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  7.658e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 157.121 -2.583

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/910040/cmap_HighResolution_499305601_499564801_4FGL_J1028.4-0234_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-01 23:50:13.419201', job_id='910040', GAL2='1.08', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630565413.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1003' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 910040: <4FGL_J1028.4-0234_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin1003> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 23:35:33 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:35:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 23:35:36 2021
Terminated at Wed Sep  1 23:50:13 2021
Results reported at Wed Sep  1 23:50:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin1003 157.121 -2.5829 499305601 499564801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1028.4-0234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   650.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

