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


Performing analysis on: 4FGL_J0530.9+1332_daily_bin1514
RA = 82.7364, Dec = 13.5402
tmin = 631756801, tmax = 632016001
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='377428', job_status='RUN', time_executed='2021-08-22 19:55:27.443114', time_epoch_executed='1629687327.44' WHERE source_name='4FGL J0530.9+1332' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377428/ft1_4FGL_J0530.9+1332_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377428/ft1_4FGL_J0530.9+1332_daily_bin1514.fits outfile=/scratch/kocevski/377428/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1514.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=631756801.0 tmax=632016001.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 11.33
user 2.20
sys 9.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.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/377428/ft1_filteredMKT_4FGL_J0530.9+1332_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.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 8.33
user 0.34
sys 7.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/377428/ltcube_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.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/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits
.....................!
real 21.30
user 12.00
sys 9.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/377428/ltcube_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.fits outfile=/scratch/kocevski/377428/expmap_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.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/377428/ltcube_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.fits
.....................!
real 200.32
user 185.10
sys 14.39

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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 166 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0530.9+1332 @ 82.7364 13.5402

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits scfile=/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits outfile=/scratch/kocevski/377428/cmap_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.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=82.7364 yref=13.5402 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 8.41
user 0.37
sys 8.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits scfile=/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits outfile=/scratch/kocevski/377428/cmap_HighResolution_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.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=82.7364 yref=13.5402 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 9.56
user 0.39
sys 7.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377428/Model_4FGL_J0530.9+1332_daily_bin1514.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits......................!
real 77.33
user 63.20
sys 11.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits', '/scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits', expMap='/scratch/kocevski/377428/expmap_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.fits', expCube='/scratch/kocevski/377428/ltcube_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377428/Model_4FGL_J0530.9+1332_daily_bin1514.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0530.9+1332'

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  4.749e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/377428/ft1_filtered_4FGL_J0530.9+1332_daily_bin1514.fits
Spacecraft file(s): /scratch/kocevski/377428/ft2_4FGL_J0530.9+1332_daily_bin1514.fits
Exposure map: /scratch/kocevski/377428/expmap_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.fits
Exposure cube: /scratch/kocevski/377428/ltcube_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377428/Model_4FGL_J0530.9+1332_daily_bin1514.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) = 2178.05746884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5657       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59160E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.5848       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.738       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0930       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16036E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    6.6966       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32997E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .55643       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1691       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1979       1.0000         .10000E-03   10000.    
    16 'norm      '    13.145       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1382       1.0000         .10000E-03   10000.    
    18 'Prefactor '    75.610       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.490       1.0000         .10000E-03   10000.    
    20 'Prefactor '    303.40       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.984       1.0000         .10000E-03   10000.    
    22 'norm      '    59.694       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25319E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2178.010     FROM MIGRAD    STATUS=CONVERGED    264 CALLS     2232 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5362        4.9269       -.11619E-06   -.13935E-04
   2  Prefactor     27.519        105.44       -.73551E-05   -.11573E-02
   3  Prefactor     81.756        99.174        .41454E-05    .11898E-02
   4  Prefactor     .10000E-03    10.753        .80111E-07** at limit **
   5  norm          .10000E-03    1.1802        .14035E-06** at limit **
   6  norm          7.3913        8.5895       -.10864E-06    .10147E-03
   7  Prefactor     21.423        15.049        .27460E-07    .17862E-03
   8  norm          4.8225        15.956        .14951E-06    .36094E-04
   9  Prefactor     11.281        13.733       -.16049E-06   -.17631E-04
  10  Prefactor     .10000E-03    119.46        .12629E-05** at limit **
  11  norm          6.3122        11.789       -.27937E-06   -.33933E-04
  12  Prefactor     .10000E-03    48.848        .24705E-06** at limit **
  13  norm          .10005E-03    319.26       -.99776E-05** at limit **
  14  norm          2.9807        6.2600        .13248E-07    .38848E-03
  15  Prefactor     1.1848        .90794       -.36906E-07   -.36585E-04
  16  norm          13.507        21.735        .38306E-06    .31675E-04
  17  Prefactor     6.2723        8.7938        .22193E-07   -.23573E-04
  18  Prefactor     91.405        371.12        .19214E-04   -.14603E-01
  19  Prefactor     36.064        1156.6       -.39818E-04    .10144E-02
  20  Prefactor     296.71        163.87       -.46634E-05   -.65264E-01
  21  Prefactor     28.597        41.867        .12935E-05    .16003E-02
  22  norm          52.460        75.551       -.10052E-05   -.31107E-03
  23  Prefactor     .10000E-03    106.04        .13161E-05** at limit **
  24  Normalizat    .10000E-01    .60588        .45325E-05** at limit **
  25  Prefactor     .95565        .11892        .10113E-05    .22891E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.53622
  Prefactor  = 27.5192
  Prefactor  = 81.7561
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.39129
  Prefactor  = 21.4226
  norm       = 4.82248
  Prefactor  = 11.2809
  Prefactor  = 0.000100001
  norm       = 6.31225
  Prefactor  = 0.0001
  norm       = 0.000100051
  norm       = 2.98069
  Prefactor  = 1.18485
  norm       = 13.5066
  Prefactor  = 6.27231
  Prefactor  = 91.4055
  Prefactor  = 36.0641
  Prefactor  = 296.71
  Prefactor  = 28.5971
  norm       = 52.46
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.955647
 **********
 **   18 **HESSE 
 **********

 FCN=   2178.010     FROM HESSE     STATUS=OK           491 CALLS     2723 TOTAL
                     EDM=   .19E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5362        4.9467        .42573E-02   -1.5237    
   2  Prefactor     27.519        106.06        .18010E-02   -1.4658    
   3  Prefactor     81.756        100.09        .11586E-02   -1.3897    
   4  Prefactor     .10000E-03    10.748        .10536E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.3913        8.6321        .36404E-02   -1.5164    
   7  Prefactor     21.423        15.126        .21477E-02   -1.4782    
   8  norm          4.8225        15.931        .44540E-02   -1.5269    
   9  Prefactor     11.281        13.777        .30023E-02   -1.5036    
  10  Prefactor     .10000E-03    119.70        .91030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3122        11.791        .38765E-02   -1.5205    
  12  Prefactor     .10000E-03    48.922        .98614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10005E-03    73.192        .11499       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9807        6.9080        .56915E-02   -1.5363    
  15  Prefactor     1.1848        .79943        .50001E-02   -1.5490    
  16  norm          13.507        19.699        .27619E-02   -1.4973    
  17  Prefactor     6.2723        8.2126        .40511E-02   -1.5207    
  18  Prefactor     91.405        570.19        .11544E-02   -1.3793    
  19  Prefactor     36.064        1578.1        .14251E-02   -1.4506    
  20  Prefactor     296.71        297.00        .58302E-03   -1.2246    
  21  Prefactor     28.597        48.113        .18933E-02   -1.4638    
  22  norm          52.460        75.380        .12982E-02   -1.4258    
  23  Prefactor     .10000E-03    106.16        .91489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .52980        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .95565        .12295        .33714E-01   -.94223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000192722
Minuit parameter uncertainties:
  1  4.94704
  2  106.796
  3  100.301
  4  1.08538e-05
  5  6.89411e-06
  6  8.63352
  7  15.1289
  8  15.9449
  9  13.7812
  10  0.00069656
  11  11.7956
  12  9.20755e-05
  13  0.00387453
  14  6.90989
  15  0.799442
  16  19.7087
  17  8.21411
  18  463.269
  19  491.663
  20  298.534
  21  48.1781
  22  75.5171
  23  0.000692178
  24  4.60953e-06
  25  0.122986
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.001e-04  3.875e-03  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.556e-01  1.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.000e-02  4.610e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 82.736 13.540
Photon Flux Upper Limit: 9.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377428/likelihoodResults_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.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) = 2178.01034024
delta logL = -2.23908809858e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2178.01031822
delta logL = -3.7744302972e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13174E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5702       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2177.757     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      312 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7106        234.94        .90712E-02    .22036E-03
   2  alpha         4.1529        2.5674        .41172        .20783E-04
   3  Normalizat    .10000E-01    .10240        .32094    ** at limit **
   4  Prefactor     .93965        .52929E-01    .33817E-01    .89260E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.71057
  alpha      = 4.15292
  Normalizat = 0.01
  Prefactor  = 0.939655
 **********
 **   18 **HESSE 
 **********

 FCN=   2177.757     FROM HESSE     STATUS=OK            31 CALLS      343 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7106        21.577        .13406E-03   -1.5323    
   2  alpha         4.1529        4.0822        .20309E-02    .72237    
   3  Normalizat    .10000E-01    .50121        .17236E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93965        .99141E-01    .14945E-03   -.94769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52297e-11
Minuit parameter uncertainties:
  1  17.9051
  2  2.57253
  3  3.01383e-06
  4  0.0991599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377428': 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) = 2177.75711766
delta logL = 0.253200183954

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  3.711e+00  1.791e+01  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  4.153e+00  2.573e+00  0.000e+00  5.000e+00 ( 1.000e+00)
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.397e-01  9.916e-02  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.000e-02  3.014e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 82.736 13.540

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/377428/cmap_HighResolution_631756801_632016001_4FGL_J0530.9+1332_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-04', job_status='DONE', photon_flux_upper_limit='9.07e-07', time_completed='2021-08-22 20:05:16.894941', job_id='377428', GAL2='0.94', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629687916.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.53e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1514' AND source_name='4FGL J0530.9+1332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 20:05:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 377428: <4FGL_J0530.9+1332_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0530.9+1332_daily_bin1514> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 19:50:34 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 19:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 19:50:35 2021
Terminated at Sun Aug 22 20:05:18 2021
Results reported at Sun Aug 22 20:05:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_daily_bin1514 82.7364 13.5402 631756801 632016001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0530.9+1332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   706.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

