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


Performing analysis on: 4FGL_J1028.4-0234_daily_bin606
RA = 157.121, Dec = -2.5829
tmin = 396403201, tmax = 396662401
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='907429', job_status='RUN', time_executed='2021-09-01 23:30:31.529851', time_epoch_executed='1630564231.53' WHERE source_name='4FGL J1028.4-0234' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907429/ft1_4FGL_J1028.4-0234_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907429/ft1_4FGL_J1028.4-0234_daily_bin606.fits outfile=/scratch/kocevski/907429/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin606.fits ra=157.121 dec=-2.5829 rad=12.0 tmin=396403201.0 tmax=396662401.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 4.78
user 4.46
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.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/907429/ft1_filteredMKT_4FGL_J1028.4-0234_daily_bin606.fits evtable="EVENTS" outfile="/scratch/kocevski/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.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.56
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/907429/ltcube_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.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/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits
.....................!
real 18.14
user 17.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/907429/ltcube_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.fits outfile=/scratch/kocevski/907429/expmap_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.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/907429/ltcube_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.fits
.....................!
real 192.71
user 187.72
sys 4.34

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/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits scfile=/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits outfile=/scratch/kocevski/907429/cmap_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits scfile=/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits outfile=/scratch/kocevski/907429/cmap_HighResolution_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.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.57
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907429/Model_4FGL_J1028.4-0234_daily_bin606.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/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits.....................!
real 51.62
user 50.25
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits', '/scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits', expMap='/scratch/kocevski/907429/expmap_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.fits', expCube='/scratch/kocevski/907429/ltcube_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907429/Model_4FGL_J1028.4-0234_daily_bin606.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/907429/ft1_filtered_4FGL_J1028.4-0234_daily_bin606.fits
Spacecraft file(s): /scratch/kocevski/907429/ft2_4FGL_J1028.4-0234_daily_bin606.fits
Exposure map: /scratch/kocevski/907429/expmap_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.fits
Exposure cube: /scratch/kocevski/907429/ltcube_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907429/Model_4FGL_J1028.4-0234_daily_bin606.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) = 4909.42809309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71388       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.125       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.258       1.0000         .10000E-03   10000.    
     6 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.885       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0882       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9385       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5665       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1392       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1458       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90986       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.

 FCN=   4909.379     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1920 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71379        .64940        .14811E-06    .24647E-03
   2  norm          1.5807        1.6343        .12000E-06    .43975E-04
   3  Prefactor     13.153        14.610       -.64434E-06   -.17866E-04
   4  Prefactor     33.127        52.156       -.36925E-06   -.54930E-04
   5  Prefactor     21.247        23.268       -.35169E-05   -.15730E-03
   6  norm          .10000E-03    6.8830       -.78255E-06** at limit **
   7  Prefactor     1.2455        38.107        .77230E-05   -.22656E-03
   8  Prefactor     .10000E-03    25.626        .10244E-05** at limit **
   9  Prefactor     68.999        68.802        .92873E-05    .17464E-03
  10  Prefactor     .10002E-03    37.420        .82003E-05** at limit **
  11  norm          3.0884        1.9602       -.14943E-06   -.82542E-03
  12  Prefactor     3.9368        9.0706        .95969E-05   -.21275E-03
  13  Prefactor     .10000E-03    1.3646        .25444E-06** at limit **
  14  Prefactor     5.5678        8.3568        .22241E-05   -.63989E-04
  15  norm          .10000E-03    .32733        .29363E-06** at limit **
  16  norm          .10000E-03    6.8059        .97787E-06** at limit **
  17  Prefactor     7.1420        10.404        .62281E-06   -.38597E-03
  18  Normalizat    1.1457        .23823       -.85503E-05   -.13937E-03
  19  Prefactor     .91000        .16443        .14713E-05   -.60327E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.713789
  norm       = 1.58068
  Prefactor  = 13.1534
  Prefactor  = 33.1266
  Prefactor  = 21.2471
  norm       = 0.0001
  Prefactor  = 1.24546
  Prefactor  = 0.0001
  Prefactor  = 68.9987
  Prefactor  = 0.000100019
  norm       = 3.08838
  Prefactor  = 3.9368
  Prefactor  = 0.0001
  Prefactor  = 5.56778
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.14203
  Normalizat = 1.14571
  Prefactor  = 0.909998
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.379     FROM HESSE     STATUS=OK           268 CALLS     2188 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71379        .63465        .51599E-04   -1.5539    
   2  norm          1.5807        1.6406        .88646E-04   -1.5457    
   3  Prefactor     13.153        14.589        .11047E-03   -1.4982    
   4  Prefactor     33.127        52.240        .69623E-04   -1.4556    
   5  Prefactor     21.247        23.342        .86873E-04   -1.4786    
   6  norm          .10000E-03    6.8913        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2455        37.427        .38747E-03   -1.5485    
   8  Prefactor     .10000E-03    25.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.999        70.742        .24181E-03   -1.4045    
  10  Prefactor     .10002E-03    36.795        .21275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0884        1.9544        .36414E-03   -1.5356    
  12  Prefactor     3.9368        9.2498        .10163E-02   -1.5311    
  13  Prefactor     .10000E-03    1.3793        .79878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5678        8.3535        .17028E-03   -1.5236    
  15  norm          .10000E-03    .45999        .69853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.8788        .17861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1420        9.4052        .15013E-03   -1.5173    
  18  Normalizat    1.1457        .27718        .27066E-03   -.88297    
  19  Prefactor     .91000        .19401        .22475E-03   -.95793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52663e-09
Minuit parameter uncertainties:
  1  0.634658
  2  1.64063
  3  14.5928
  4  52.3127
  5  23.3517
  6  4.86723e-05
  7  13.6636
  8  4.35452e-05
  9  70.8279
  10  0.00167269
  11  1.95446
  12  9.25317
  13  2.67294e-06
  14  8.35527
  15  9.00611e-06
  16  4.92644e-05
  17  9.40713
  18  0.277532
  19  0.194162
Done.

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

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  3.937e+00  9.253e+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

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.100e-01  1.942e-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:  1.146e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 157.121 -2.583
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907429/likelihoodResults_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.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) = 4908.96345132
delta logL = 0.415243254814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4908.89638132
delta logL = 0.482313257552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41377E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8561       1.0000          .0000       10.000    
     3 'Normalizat'    1.0723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95478       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.

 FCN=   4908.896     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      355 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38943E-02    .63420E-01    .97260E-03    .97423E-03
   2  Index         7.8937        3.2649        .21849        .25874E-04
   3  Normalizat    1.0724        .47415E-01    .62919E-01   -.24308E-03
   4  Prefactor     .95496        .35760E-01    .45699E-01   -.30259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00389427
  Index      = 7.8937
  Normalizat = 1.07243
  Prefactor  = 0.954956
 **********
 **   18 **HESSE 
 **********

 FCN=   4908.896     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      386 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38943E-02    .19992        .43863E-04   -1.5696    
   2  Index         7.8937        8.9202        .80860E-02    .61718    
   3  Normalizat    1.0724        .18959        .27830E-03   -.90642    
   4  Prefactor     .95496        .13994        .22006E-03   -.94246    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21398e-10
Minuit parameter uncertainties:
  1  0.0550843
  2  8.32579
  3  0.189712
  4  0.139995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907429': 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): 102
logL (Free Index) = 4908.89635523
delta logL = 0.482339346942

Extracting fit parameters...

4FGL J1028.4-0234
   Spectrum: PowerLaw
235    Prefactor:  3.894e-03  5.508e-02  1.000e-04  1.000e+04 ( 1.000e-12)
236        Index:  7.894e+00  8.326e+00  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:  9.550e-01  1.400e-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:  1.072e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 157.121 -2.583
Photon Index (Free Index): 7.89 +/- 8.33
Photon Flux (Free Index): 8.39e-08 +/- 8.32e-08
Energy Flux (Free Index): 9.76e-06 +/- 1.06e-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/907429/cmap_HighResolution_396403201_396662401_4FGL_J1028.4-0234_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', energy_flux2='9.76e-06', dlogl='4.82e-01', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-09-01 23:39:32.106854', photon_index_error2='8.33', photon_index2='7.89', ts='0.23', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.06e-05', EG='1.15', time_epoch_completed='1630564772.11', return_code='0', job_id='907429', GAL2='0.95', EG2='1.07', return_code2='102', photon_flux_error2='8.32e-08', ts2='1.29', photon_index='2.61' WHERE bin_id='606' AND source_name='4FGL J1028.4-0234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 907429: <4FGL_J1028.4-0234_daily_bin606> in cluster <slac> Done

Job <4FGL_J1028.4-0234_daily_bin606> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:25:31 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:28:24 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:28:24 2021
Terminated at Wed Sep  1 23:39:32 2021
Results reported at Wed Sep  1 23:39:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.4-0234_daily_bin606 157.121 -2.5829 396403201 396662401 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 :                                   537.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            841 sec.

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

