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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1033
RA = 233.016, Dec = 30.2685
tmin = 507081601, tmax = 507340801
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='538948', job_status='RUN', time_executed='2021-09-12 03:43:25.256583', time_epoch_executed='1631443405.26' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538948/ft1_4FGL_J1532.0+3016_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538948/ft1_4FGL_J1532.0+3016_daily_bin1033.fits outfile=/scratch/kocevski/538948/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1033.fits ra=233.016 dec=30.2685 rad=12.0 tmin=507081601.0 tmax=507340801.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.60
user 4.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.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/538948/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1033.fits evtable="EVENTS" outfile="/scratch/kocevski/538948/ft1_filtered_4FGL_J1532.0+3016_daily_bin1033.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538948/ft1_filtered_4FGL_J1532.0+3016_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/538948/ltcube_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.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/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits
.....................!
real 13.38
user 12.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538948/ft1_filtered_4FGL_J1532.0+3016_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/538948/ltcube_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.fits outfile=/scratch/kocevski/538948/expmap_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.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/538948/ltcube_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.fits
.....................!
real 190.30
user 186.20
sys 3.71

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/538948/ft1_filtered_4FGL_J1532.0+3016_daily_bin1033.fits scfile=/scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits outfile=/scratch/kocevski/538948/cmap_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538948/ft1_filtered_4FGL_J1532.0+3016_daily_bin1033.fits scfile=/scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits outfile=/scratch/kocevski/538948/cmap_HighResolution_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538948/ft1_filtered_4FGL_J1532.0+3016_daily_bin1033.fits', '/scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits', expMap='/scratch/kocevski/538948/expmap_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.fits', expCube='/scratch/kocevski/538948/ltcube_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538948/Model_4FGL_J1532.0+3016_daily_bin1033.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/538948/ft1_filtered_4FGL_J1532.0+3016_daily_bin1033.fits
Spacecraft file(s): /scratch/kocevski/538948/ft2_4FGL_J1532.0+3016_daily_bin1033.fits
Exposure map: /scratch/kocevski/538948/expmap_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.fits
Exposure cube: /scratch/kocevski/538948/ltcube_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538948/Model_4FGL_J1532.0+3016_daily_bin1033.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) = 5962.82783541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8036       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.886       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.334       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11548E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16599E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0220       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73099       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1558       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.

 FCN=   5961.847     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1774 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7933        7.3090        .32014E-02   -.64031E-04
   2  Prefactor     3.8102        52.148        .51742E-02   -.66252E-03
   3  norm          .10000E-03    3.0409        .90712E-02** at limit **
   4  Prefactor     11.886        11.529        .29049E-02   -.65283E-04
   5  Prefactor     14.339        10.028        .26448E-02   -.63657E-03
   6  Prefactor     .10000E-03    2.2738        .90712E-02** at limit **
   7  norm          .10000E-03    1.0361        .41567E-01** at limit **
   8  Prefactor     .10000E-03    71.007        .90712E-02** at limit **
   9  Prefactor     .10000E-03    32.015        .90712E-02** at limit **
  10  Prefactor     .10000E-03    2.8474        .90712E-02** at limit **
  11  norm          1.0218        .92114        .12740E-01    .67572E-03
  12  Prefactor     .10000E-03    6.4048        .90712E-02** at limit **
  13  Prefactor     .10000E-03    12.933        .90712E-02** at limit **
  14  Prefactor     .10000E-03    14.027        .90712E-02** at limit **
  15  norm          2.8869        7.8647        .59747E-02    .38005E-03
  16  Prefactor     .10000E-03    .59756        .90712E-02** at limit **
  17  Prefactor     .10000E-03    5.5836        .90712E-02** at limit **
  18  Prefactor     .10000E-03    1.9349        .90712E-02** at limit **
  19  Normalizat    .73081        .17873        .64407E-01    .18990E-03
  20  Prefactor     1.1558        .13782        .35772E-01    .21171E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.7933
  Prefactor  = 3.8102
  norm       = 0.0001
  Prefactor  = 11.886
  Prefactor  = 14.3391
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.0218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.730814
  Prefactor  = 1.15582
 **********
 **   18 **HESSE 
 **********

 FCN=   5961.847     FROM HESSE     STATUS=OK           287 CALLS     2061 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7933        7.3086        .12806E-03   -1.5082    
   2  Prefactor     3.8102        52.525        .20697E-03   -1.5318    
   3  norm          .10000E-03    3.0450        .13149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.886        11.532        .11620E-03   -1.5018    
   5  Prefactor     14.339        9.2878        .10579E-03   -1.4950    
   6  Prefactor     .10000E-03    2.2754        .11371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7223        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    71.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8641        .12723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0218        .88171        .67089E-03   -1.5506    
  12  Prefactor     .10000E-03    6.5120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8869        7.8309        .23899E-03   -1.5368    
  16  Prefactor     .10000E-03    .60073        .58276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6120        .17817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0008        .20963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73081        .20412        .28494E-03   -1.0269    
  20  Prefactor     1.1558        .15899        .18733E-03   -.87702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10019e-08
Minuit parameter uncertainties:
  1  7.30923
  2  28.3233
  3  2.64762e-05
  4  11.534
  5  9.2887
  6  2.1255e-05
  7  3.35238e-05
  8  0.000934352
  9  0.000686566
  10  1.07928e-05
  11  0.881724
  12  2.13023e-05
  13  0.000130576
  14  4.07247e-05
  15  7.83372
  16  1.05556e-06
  17  2.13111e-05
  18  1.2808e-05
  19  0.204328
  20  0.159059
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.306e-04  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:  1.156e+00  1.591e-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:  7.308e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/538948/likelihoodResults_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.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) = 5961.84745392
delta logL = -0.000367679654119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5961.8470866
delta logL = -3.55486918124e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9031       1.0000          .0000       10.000    
     3 'Normalizat'    .73090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1558       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=   5961.847     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    74.047        .18142E-02** at limit **
   2  Index         1.8702        5.7272        .50000        .10514E-04
   3  Normalizat    .73081        .10278E-01    .28494E-03   -.24817E-04
   4  Prefactor     1.1558        .83719E-02    .18733E-03   -.28584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100493
  Index      = 1.87018
  Normalizat = 0.730814
  Prefactor  = 1.15582
 **********
 **   18 **HESSE 
 **********

 FCN=   5961.847     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10049E-03    339.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8702        5.6970        .50000       -.67637    
   3  Normalizat    .73081        .22575E-01    .11398E-04   -1.0269    
   4  Prefactor     1.1558        .18388E-01    .37466E-04   -.87702    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68148e-09
Minuit parameter uncertainties:
  1  0.0260145
  2  372.7
  3  0.0225755
  4  0.0183879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538948': 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) = 5961.84708611
delta logL = 1.34085894388e-07

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.005e-04  2.601e-02  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.870e+00  3.727e+02  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:  1.156e+00  1.839e-02  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:  7.308e-01  2.258e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 233.016 30.268

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/538948/cmap_HighResolution_507081601_507340801_4FGL_J1532.0+3016_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.94e-08', time_completed='2021-09-12 03:53:38.380307', job_id='538948', GAL2='1.16', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1631444018.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1033' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:53:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 538948: <4FGL_J1532.0+3016_daily_bin1033> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin1033> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 03:40:32 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:41:26 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:41:26 2021
Terminated at Sun Sep 12 03:53:39 2021
Results reported at Sun Sep 12 03:53:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1033 233.016 30.2685 507081601 507340801 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 :                                   574.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            787 sec.

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

