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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1019
RA = 233.016, Dec = 30.2685
tmin = 503452801, tmax = 503712001
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='538927', job_status='RUN', time_executed='2021-09-12 03:43:13.498994', time_epoch_executed='1631443393.5' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538927/ft1_4FGL_J1532.0+3016_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538927/ft2_4FGL_J1532.0+3016_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538927/ft1_4FGL_J1532.0+3016_daily_bin1019.fits outfile=/scratch/kocevski/538927/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1019.fits ra=233.016 dec=30.2685 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.79
user 7.51
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538927/ft1_filtered_4FGL_J1532.0+3016_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/538927/ft2_4FGL_J1532.0+3016_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/538927/ltcube_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.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/538927/ft2_4FGL_J1532.0+3016_daily_bin1019.fits
.....................!
real 11.74
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538927/ft1_filtered_4FGL_J1532.0+3016_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/538927/ft2_4FGL_J1532.0+3016_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/538927/ltcube_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.fits outfile=/scratch/kocevski/538927/expmap_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.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/538927/ltcube_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.fits
.....................!
real 191.31
user 186.20
sys 4.77

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/538927/ft1_filtered_4FGL_J1532.0+3016_daily_bin1019.fits scfile=/scratch/kocevski/538927/ft2_4FGL_J1532.0+3016_daily_bin1019.fits outfile=/scratch/kocevski/538927/cmap_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538927/ft1_filtered_4FGL_J1532.0+3016_daily_bin1019.fits scfile=/scratch/kocevski/538927/ft2_4FGL_J1532.0+3016_daily_bin1019.fits outfile=/scratch/kocevski/538927/cmap_HighResolution_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17246E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.791       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8605       1.0000         .10000E-03   10000.    
     7 'norm      '    .14088       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.466       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12400E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4714       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1376       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84593       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=   4340.683     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2089 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.509        7.6802        .10929E-08   -.20271E-04
   2  Prefactor     .10000E-03    54.739        .16420E-05** at limit **
   3  norm          .10000E-03    6.3658        .30274E-06** at limit **
   4  Prefactor     33.812        24.688       -.14677E-05   -.12929E-03
   5  Prefactor     .10000E-03    12.826        .94307E-06** at limit **
   6  Prefactor     2.8617        6.9085        .10492E-06    .66936E-05
   7  norm          .13125        1.4056       -.48546E-06    .13654E-02
   8  Prefactor     24.843        85.453       -.59761E-05   -.26272E-04
   9  Prefactor     22.782        77.605       -.25538E-05   -.35434E-04
  10  Prefactor     .10000E-03    4.2937       -.10775E-06** at limit **
  11  norm          1.3924        2.1024        .53246E-06    .26537E-03
  12  Prefactor     18.472        17.203       -.89196E-06   -.13665E-03
  13  Prefactor     .10000E-03    34.568        .18358E-06** at limit **
  14  Prefactor     .10000E-03    10.527        .50134E-06** at limit **
  15  norm          .10000E-03    6.1654        .36802E-06** at limit **
  16  Prefactor     .10000E-03    1.4732        .17057E-06** at limit **
  17  Prefactor     .10000E-03    18.912        .15481E-05** at limit **
  18  Prefactor     8.4745        5.0558        .77440E-07   -.34532E-04
  19  Normalizat    1.1368        .24700       -.39026E-05   -.87946E-04
  20  Prefactor     .84642        .17305        .24319E-05   -.24275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5091
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.8122
  Prefactor  = 0.000100001
  Prefactor  = 2.86167
  norm       = 0.131254
  Prefactor  = 24.8428
  Prefactor  = 22.7823
  Prefactor  = 0.0001
  norm       = 1.3924
  Prefactor  = 18.472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.47445
  Normalizat = 1.13676
  Prefactor  = 0.846416
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.683     FROM HESSE     STATUS=OK           289 CALLS     2378 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.509        7.6820        .11327E-03   -1.5000    
   2  Prefactor     .10000E-03    55.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.3808        .16244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.812        25.527        .68935E-04   -1.4544    
   5  Prefactor     .10000E-03    13.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8617        6.8900        .24036E-03   -1.5370    
   7  norm          .13125        9.1185        .13810E-02   -1.5636    
   8  Prefactor     24.843        88.479        .80436E-04   -1.4711    
   9  Prefactor     22.782        77.989        .41743E-03   -1.4753    
  10  Prefactor     .10000E-03    4.2988        .13330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3924        2.0453        .90459E-04   -1.5472    
  12  Prefactor     18.472        17.002        .93204E-04   -1.4848    
  13  Prefactor     .10000E-03    34.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.1750        .15984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4860        .78141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4745        5.0655        .10987E-03   -1.5126    
  19  Normalizat    1.1368        .28358        .26224E-03   -.88580    
  20  Prefactor     .84642        .19641        .22048E-03   -.98039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10799e-09
Minuit parameter uncertainties:
  1  7.6826
  2  0.000319599
  3  2.23729e-05
  4  25.5349
  5  0.000172725
  6  6.89188
  7  2.18751
  8  88.9518
  9  78.341
  10  6.62009e-07
  11  2.04543
  12  17.0064
  13  3.17807e-05
  14  3.58046e-05
  15  2.00805e-05
  16  6.43211e-06
  17  9.28962e-05
  18  5.06574
  19  0.283962
  20  0.196572
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.178e-05  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:  8.464e-01  1.966e-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.137e+00  2.840e-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: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538927/likelihoodResults_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.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) = 4340.68322103
delta logL = -0.000137574946166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4340.68308359
delta logL = -1.44597834151e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84642       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=   4340.683     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      274 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2244.2        .18142E-02** at limit **
   2  Index         1.8894        6.3216        .50000       -.84570E-05
   3  Normalizat    1.1368        .54581E-01    .26223E-03   -.14883E-03
   4  Prefactor     .84642        .40448E-01    .22048E-03    .99157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.88941
  Normalizat = 1.13675
  Prefactor  = 0.846421
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.683     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7899.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8894        6.9374        .50000       -.67144    
   3  Normalizat    1.1368        .17681        .52447E-04   -.88580    
   4  Prefactor     .84642        .13104        .88191E-05   -.98039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10484e-10
Minuit parameter uncertainties:
  1  0.00839443
  2  59.4629
  3  0.176902
  4  0.131092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538927': 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) = 4340.68308353
delta logL = -7.63111529523e-08

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.394e-03  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.889e+00  5.946e+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:  8.464e-01  1.311e-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.137e+00  1.769e-01  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/538927/cmap_HighResolution_503452801_503712001_4FGL_J1532.0+3016_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-09-12 03:52:44.944914', job_id='538927', GAL2='0.85', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631443964.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-7.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1019' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:52:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 538927: <4FGL_J1532.0+3016_daily_bin1019> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1019 233.016 30.2685 503452801 503712001 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 :                                   528.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            734 sec.

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

