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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1557
RA = 233.016, Dec = 30.2685
tmin = 642902401, tmax = 643161601
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='540782', job_status='RUN', time_executed='2021-09-12 03:48:21.847937', time_epoch_executed='1631443701.85' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540782/ft1_4FGL_J1532.0+3016_daily_bin1557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540782/ft1_4FGL_J1532.0+3016_daily_bin1557.fits outfile=/scratch/kocevski/540782/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1557.fits ra=233.016 dec=30.2685 rad=12.0 tmin=642902401.0 tmax=643161601.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.51
user 3.27
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.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/540782/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1557.fits evtable="EVENTS" outfile="/scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits" evtable="EVENTS" scfile=/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits sctable="SC_DATA" outfile=/scratch/kocevski/540782/ltcube_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.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/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits
.....................!
real 12.18
user 11.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits evtable="EVENTS" scfile=/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits sctable="SC_DATA" expcube=/scratch/kocevski/540782/ltcube_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.fits outfile=/scratch/kocevski/540782/expmap_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.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/540782/ltcube_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.fits
.....................!
real 191.57
user 185.69
sys 5.28

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

Setting source of interest to:
4FGL J1532.0+3016 @ 233.016 30.2685

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits scfile=/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits outfile=/scratch/kocevski/540782/cmap_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.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=233.016 yref=30.2685 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits scfile=/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits outfile=/scratch/kocevski/540782/cmap_HighResolution_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.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=233.016 yref=30.2685 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits evtable="EVENTS" scfile=/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/540782/Model_4FGL_J1532.0+3016_daily_bin1557.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/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits.....................!
real 47.74
user 46.28
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits', '/scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits', expMap='/scratch/kocevski/540782/expmap_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.fits', expCube='/scratch/kocevski/540782/ltcube_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540782/Model_4FGL_J1532.0+3016_daily_bin1557.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1532.0+3016'

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  5.502e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.923e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.847e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/540782/ft1_filtered_4FGL_J1532.0+3016_daily_bin1557.fits
Spacecraft file(s): /scratch/kocevski/540782/ft2_4FGL_J1532.0+3016_daily_bin1557.fits
Exposure map: /scratch/kocevski/540782/expmap_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.fits
Exposure cube: /scratch/kocevski/540782/ltcube_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540782/Model_4FGL_J1532.0+3016_daily_bin1557.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) = 5936.28268351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2473       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.334       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6705       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4915       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3598       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.134       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2646       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .67080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5936.203     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1754 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2473        3.1898       -.45130E-06   -.24083E-03
   2  Prefactor     13.334        29.136        .86253E-06   -.30176E-05
   3  norm          .10000E-03    3.4748       -.25591E-05** at limit **
   4  Prefactor     .10000E-03    7.6917       -.23071E-05** at limit **
   5  Prefactor     .10000E-03    11.259        .34829E-05** at limit **
   6  Prefactor     1.6710        6.1533       -.12440E-05   -.62550E-03
   7  norm          1.4907        1.4925       -.23836E-06   -.10669E-02
   8  Prefactor     .10000E-03    15.451       -.15397E-05** at limit **
   9  Prefactor     15.153        39.192       -.21840E-04   -.11507E-05
  10  Prefactor     .10000E-03    7.2021        .21677E-06** at limit **
  11  norm          1.3596        1.0856       -.98834E-07   -.44352E-03
  12  Prefactor     .10000E-03    10.222       -.86178E-06** at limit **
  13  Prefactor     16.133        19.524       -.11935E-05    .10450E-04
  14  Prefactor     .10000E-03    7.1645        .11769E-05** at limit **
  15  norm          .10000E-03    4.9074        .54703E-06** at limit **
  16  Prefactor     4.8723        2.4697       -.58309E-07   -.81114E-04
  17  Prefactor     .10000E-03    3.3611        .24301E-05** at limit **
  18  Prefactor     .10000E-03    1.2902       -.15133E-06** at limit **
  19  Normalizat    1.2646        .17062        .67575E-06   -.26174E-04
  20  Prefactor     .67085        .12510        .63769E-06   -.14710E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.24733
  Prefactor  = 13.3343
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67105
  norm       = 1.49074
  Prefactor  = 0.0001
  Prefactor  = 15.1529
  Prefactor  = 0.0001
  norm       = 1.35956
  Prefactor  = 0.0001
  Prefactor  = 16.1333
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.87227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26457
  Prefactor  = 0.670851
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.203     FROM HESSE     STATUS=OK           293 CALLS     2047 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2473        3.1775        .16014E-03   -1.5408    
   2  Prefactor     13.334        29.241        .10969E-03   -1.4977    
   3  norm          .10000E-03    3.4791        .14010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6710        6.2371        .32616E-03   -1.5449    
   7  norm          1.4907        1.4842        .89543E-04   -1.5464    
   8  Prefactor     .10000E-03    15.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.153        38.732        .10286E-03   -1.4929    
  10  Prefactor     .10000E-03    7.3123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3596        1.0672        .67520E-04   -1.5475    
  12  Prefactor     .10000E-03    10.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.133        19.508        .99711E-04   -1.4904    
  14  Prefactor     .10000E-03    7.1702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9144        .16667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8723        2.4693        .82776E-04   -1.5266    
  17  Prefactor     .10000E-03    3.3602        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9695        .17032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2646        .19822        .21975E-03   -.84630    
  20  Prefactor     .67085        .14499        .22216E-03   -1.0468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13869e-09
Minuit parameter uncertainties:
  1  3.17776
  2  29.2723
  3  1.88157e-07
  4  3.99101e-06
  5  2.71202e-05
  6  6.23955
  7  1.48421
  8  4.43407e-07
  9  38.7961
  10  4.32709e-06
  11  1.0672
  12  2.48612e-05
  13  19.5156
  14  4.26259e-06
  15  3.63568e-06
  16  2.46933
  17  4.58078e-06
  18  6.69608e-06
  19  0.198338
  20  0.145068
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.613e+01  1.952e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.923e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.847e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  6.709e-01  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.265e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 233.016 30.268
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 1.32e-08
Energy Flux (Fixed Index): 9.21e-06 +/- 1.11e-05

TS (Fixed Index): 1.73
Ra Dec: 233.016 30.268
Photon Flux Upper Limit: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540782/likelihoodResults_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.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) = 5936.12017768
delta logL = 0.0825248117299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5936.11890376
delta logL = 0.0837987246332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.001       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5993       1.0000          .0000       10.000    
     3 'Normalizat'    1.2681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   5936.119     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      296 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.009        26.235        .87402E-04    .26483E-04
   2  Index         1.5991        .76198        .12012E-01    .12157E-03
   3  Normalizat    1.2680        .18730        .21951E-03   -.15486E-04
   4  Prefactor     .66968        .14300        .22234E-03   -.31191E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0087
  Index      = 1.59913
  Normalizat = 1.26805
  Prefactor  = 0.669684
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.119     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.009        25.968        .17480E-04   -1.4791    
   2  Index         1.5991        .75461        .24025E-02   -.74800    
   3  Normalizat    1.2680        .18746        .87802E-05   -.84525    
   4  Prefactor     .66968        .14313        .88936E-05   -1.0473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79166e-12
Minuit parameter uncertainties:
  1  25.9815
  2  0.760047
  3  0.187558
  4  0.143204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540782': 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) = 5936.11890365
delta logL = 0.0837988407693

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  2.101e+01  2.598e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.599e+00  7.600e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.847e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  6.697e-01  1.432e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.268e+00  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 233.016 30.268
Photon Index (Free Index): 1.60 +/- 0.76
Photon Flux (Free Index): 7.31e-09 +/- 1.15e-08
Energy Flux (Free Index): 1.66e-05 +/- 3.16e-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/540782/cmap_HighResolution_642902401_643161601_4FGL_J1532.0+3016_daily_bin1557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='1.66e-05', photon_flux_error='1.32e-08', dlogl='8.38e-02', energy_flux='9.21e-06', photon_flux2='7.31e-09', job_status='DONE', time_completed='2021-09-12 03:58:03.050603', photon_index_error2='0.76', photon_index2='1.60', ts='1.73', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='5.54e-08', energy_flux_error2='3.16e-05', EG='1.26', time_epoch_completed='1631444283.05', return_code='0', job_id='540782', GAL2='0.67', EG2='1.27', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='1.15e-08', ts2='1.90', photon_index='1.92' WHERE bin_id='1557' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:58:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 540782: <4FGL_J1532.0+3016_daily_bin1557> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin1557> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 03:45:43 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:48:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 03:48:08 2021
Terminated at Sun Sep 12 03:58:03 2021
Results reported at Sun Sep 12 03:58:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1557 233.016 30.2685 642902401 643161601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1532.0+3016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            740 sec.

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

