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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin559
RA = 233.016, Dec = 30.2685
tmin = 384220801, tmax = 384480001
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='537173', job_status='RUN', time_executed='2021-09-12 03:35:37.507038', time_epoch_executed='1631442937.51' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537173/ft1_4FGL_J1532.0+3016_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537173/ft2_4FGL_J1532.0+3016_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537173/ft1_4FGL_J1532.0+3016_daily_bin559.fits outfile=/scratch/kocevski/537173/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin559.fits ra=233.016 dec=30.2685 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.64
user 13.08
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537173/ft1_filtered_4FGL_J1532.0+3016_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/537173/ft2_4FGL_J1532.0+3016_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/537173/ltcube_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.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/537173/ft2_4FGL_J1532.0+3016_daily_bin559.fits
.....................!
real 11.25
user 10.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537173/ft1_filtered_4FGL_J1532.0+3016_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/537173/ft2_4FGL_J1532.0+3016_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/537173/ltcube_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.fits outfile=/scratch/kocevski/537173/expmap_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.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/537173/ltcube_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.fits
.....................!
real 191.17
user 186.13
sys 4.70

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/537173/ft1_filtered_4FGL_J1532.0+3016_daily_bin559.fits scfile=/scratch/kocevski/537173/ft2_4FGL_J1532.0+3016_daily_bin559.fits outfile=/scratch/kocevski/537173/cmap_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537173/ft1_filtered_4FGL_J1532.0+3016_daily_bin559.fits scfile=/scratch/kocevski/537173/ft2_4FGL_J1532.0+3016_daily_bin559.fits outfile=/scratch/kocevski/537173/cmap_HighResolution_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.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/537173/ft1_filtered_4FGL_J1532.0+3016_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/537173/ft2_4FGL_J1532.0+3016_daily_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537173/Model_4FGL_J1532.0+3016_daily_bin559.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/537173/ft1_filtered_4FGL_J1532.0+3016_daily_bin559.fits......................!
real 32.70
user 31.19
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3505       1.0000         .10000E-03   10000.    
     2 'Prefactor '    129.67       1.0000         .10000E-03   10000.    
     3 'norm      '    .10500E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1788       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .56029       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11496E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    32.675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6358       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2719       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1662       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0420       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=   3177.264     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2050 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3504        9.3396       -.17146E-06   -.67665E-05
   2  Prefactor     129.68        86.658        .83985E-05    .28135E-04
   3  norm          .10000E-03    9.8711       -.66631E-05** at limit **
   4  Prefactor     4.1687        26.113       -.13094E-04    .38413E-05
   5  Prefactor     .10000E-03    6.2901       -.15179E-06** at limit **
   6  Prefactor     .10000E-03    6.6833        .53646E-06** at limit **
   7  norm          .56216        1.7097       -.27782E-06   -.56160E-03
   8  Prefactor     .10000E-03    40.786       -.33138E-05** at limit **
   9  Prefactor     91.828        145.66       -.69325E-05    .28551E-05
  10  Prefactor     10.542        25.822       -.13905E-04   -.40731E-04
  11  norm          4.7827        2.6683        .70232E-07   -.36964E-03
  12  Prefactor     .10000E-03    10.491        .92098E-05** at limit **
  13  Prefactor     .10000E-03    21.785        .10325E-04** at limit **
  14  Prefactor     .10000E-03    18.046       -.64600E-05** at limit **
  15  norm          32.673        22.726       -.15881E-05    .66058E-04
  16  Prefactor     3.6348        5.8795       -.29326E-07   -.24375E-03
  17  Prefactor     .10000E-03    15.494       -.34916E-05** at limit **
  18  Prefactor     6.2717        5.8385       -.45819E-06   -.85063E-04
  19  Normalizat    1.1662        .33343        .28623E-05    .14424E-05
  20  Prefactor     1.0420        .24113        .11813E-05    .55805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.35039
  Prefactor  = 129.677
  norm       = 0.0001
  Prefactor  = 4.1687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.562157
  Prefactor  = 0.0001
  Prefactor  = 91.8277
  Prefactor  = 10.5422
  norm       = 4.78272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.6726
  Prefactor  = 3.63481
  Prefactor  = 0.0001
  Prefactor  = 6.27168
  Normalizat = 1.16622
  Prefactor  = 1.04204
 **********
 **   18 **HESSE 
 **********

 FCN=   3177.264     FROM HESSE     STATUS=OK           291 CALLS     2341 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3504        9.3392        .13873E-03   -1.5130    
   2  Prefactor     129.68        87.415        .35358E-04   -1.3425    
   3  norm          .10000E-03    9.8014        .17195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1687        25.918        .19715E-03   -1.5300    
   5  Prefactor     .10000E-03    6.3111        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6880        .14234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .56216        1.5815        .11989E-02   -1.5558    
   8  Prefactor     .10000E-03    40.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     91.828        145.88        .41934E-04   -1.3788    
  10  Prefactor     10.542        25.923        .12334E-03   -1.5058    
  11  norm          4.7827        2.6802        .63597E-04   -1.5271    
  12  Prefactor     .10000E-03    10.517        .17824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          32.673        22.751        .70099E-04   -1.4564    
  16  Prefactor     3.6348        5.8608        .16284E-03   -1.5327    
  17  Prefactor     .10000E-03    15.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2717        5.8435        .12588E-03   -1.5207    
  19  Normalizat    1.1662        .39313        .29858E-03   -.87653    
  20  Prefactor     1.0420        .28334        .24625E-03   -.91341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50791e-10
Minuit parameter uncertainties:
  1  9.34087
  2  87.5024
  3  0.000102743
  4  20.802
  5  3.31487e-05
  6  7.27219e-06
  7  1.58164
  8  3.95098e-06
  9  146.455
  10  25.9509
  11  2.68026
  12  1.06271e-05
  13  9.25767e-06
  14  2.7156e-05
  15  22.7572
  16  5.86176
  17  1.43426e-05
  18  5.84401
  19  0.394128
  20  0.283746
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  9.258e-06  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.042e+00  2.837e-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.166e+00  3.941e-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: 8.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537173/likelihoodResults_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.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) = 3177.2637403
delta logL = -0.00021661413939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3177.26373818
delta logL = -0.000214494421925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94527E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9232       1.0000          .0000       10.000    
     3 'Normalizat'    1.1662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0420       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3177.264     FROM MIGRAD    STATUS=FAILED        92 CALLS      236 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10405E-03    52.983        .18178E-01** at limit **
   2  Index         1.4974        5.7755        .50000        .13099E-05
   3  Normalizat    1.1662        .10722E-01    .29857E-03    .10719E-04
   4  Prefactor     1.0420        .84625E-02    .24625E-03    .41228E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3177.264     FROM SIMPLEX   STATUS=UNCHANGED    118 CALLS      354 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10405E-03    52.983        .74629E-03** at limit **
   2  Index         1.4974        5.7755        .44391E-03    .13099E-05
   3  Normalizat    1.1662        .10722E-01    .15110E-05    .10719E-04
   4  Prefactor     1.0420        .84625E-02    .10193E-05    .41228E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3177.264     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      387 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    507.59        .28985E-02** at limit **
   2  Index         1.5577        6.2671        .50000        .21182E-05
   3  Normalizat    1.1662        .34310E-01    .11943E-04    .10757E-04
   4  Prefactor     1.0420        .27079E-01    .98499E-05    .41205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101388
  Index      = 1.55768
  Normalizat = 1.16622
  Prefactor  = 1.04204
 **********
 **   18 **HESSE 
 **********

 FCN=   3177.264     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      416 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10139E-03    2032.1        .57970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5577        5.0339        .50000       -.75937    
   3  Normalizat    1.1662        .76604E-01    .23886E-05   -.87653    
   4  Prefactor     1.0420        .60447E-01    .19700E-05   -.91341    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01207e-08
Minuit parameter uncertainties:
  1  0.110174
  2  3486.18
  3  0.0766114
  4  0.0604505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537173': 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) = 3177.26352325
delta logL = 4.37035851064e-07

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.014e-04  1.102e-01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.558e+00  3.486e+03  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.042e+00  6.045e-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:  1.166e+00  7.661e-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/537173/cmap_HighResolution_384220801_384480001_4FGL_J1532.0+3016_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-09-12 03:44:17.014248', job_id='537173', GAL2='1.04', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631443457.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='559' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:44:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 537173: <4FGL_J1532.0+3016_daily_bin559> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin559> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 03:35:21 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:35:25 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:35:25 2021
Terminated at Sun Sep 12 03:44:17 2021
Results reported at Sun Sep 12 03:44:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin559 233.016 30.2685 384220801 384480001 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 :                                   506.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            536 sec.

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

