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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1013
RA = 233.016, Dec = 30.2685
tmin = 501897601, tmax = 502156801
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='538919', job_status='RUN', time_executed='2021-09-12 03:45:20.631368', time_epoch_executed='1631443520.63' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538919/ft1_4FGL_J1532.0+3016_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538919/ft2_4FGL_J1532.0+3016_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538919/ft1_4FGL_J1532.0+3016_daily_bin1013.fits outfile=/scratch/kocevski/538919/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1013.fits ra=233.016 dec=30.2685 rad=12.0 tmin=501897601.0 tmax=502156801.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.49
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538919/ft1_filtered_4FGL_J1532.0+3016_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/538919/ft2_4FGL_J1532.0+3016_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/538919/ltcube_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.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/538919/ft2_4FGL_J1532.0+3016_daily_bin1013.fits
.....................!
real 12.43
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538919/ft1_filtered_4FGL_J1532.0+3016_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/538919/ft2_4FGL_J1532.0+3016_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/538919/ltcube_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.fits outfile=/scratch/kocevski/538919/expmap_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.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/538919/ltcube_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.fits
.....................!
real 190.65
user 185.05
sys 5.25

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/538919/ft1_filtered_4FGL_J1532.0+3016_daily_bin1013.fits scfile=/scratch/kocevski/538919/ft2_4FGL_J1532.0+3016_daily_bin1013.fits outfile=/scratch/kocevski/538919/cmap_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538919/ft1_filtered_4FGL_J1532.0+3016_daily_bin1013.fits scfile=/scratch/kocevski/538919/ft2_4FGL_J1532.0+3016_daily_bin1013.fits outfile=/scratch/kocevski/538919/cmap_HighResolution_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.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/538919/ft1_filtered_4FGL_J1532.0+3016_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/538919/ft2_4FGL_J1532.0+3016_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538919/Model_4FGL_J1532.0+3016_daily_bin1013.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/538919/ft1_filtered_4FGL_J1532.0+3016_daily_bin1013.fits.....................!
real 47.72
user 46.40
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.704       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59631E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0596       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34096E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2241       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2764       1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.41       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11227E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4359       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11474E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.685       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4746       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3816       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .60189       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1510       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=   6352.606     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2079 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.701        9.6061        .25951E-07   -.74663E-06
   2  Prefactor     .10000E-03    74.905        .22782E-06** at limit **
   3  norm          6.0591        5.9887       -.59889E-07    .10488E-04
   4  Prefactor     .10006E-03    8.2499       -.37826E-06** at limit **
   5  Prefactor     6.3685        6.3546       -.66004E-06   -.51122E-04
   6  Prefactor     5.2181        8.6842       -.26207E-06   -.27881E-04
   7  norm          1.2736        2.0391        .10720E-05    .16787E-03
   8  Prefactor     104.53        105.00        .12953E-05    .24271E-04
   9  Prefactor     .10000E-03    18.311        .68900E-08** at limit **
  10  Prefactor     .10000E-03    2.8689       -.53860E-07** at limit **
  11  norm          2.4355        1.1776        .41327E-07   -.96703E-04
  12  Prefactor     .10000E-03    3.8748       -.50398E-08** at limit **
  13  Prefactor     12.491        13.993        .20381E-08   -.14823E-05
  14  Prefactor     .10000E-03    31.313        .10955E-05** at limit **
  15  norm          17.693        13.556        .25609E-07   -.36572E-04
  16  Prefactor     1.4747        2.0029        .23776E-06    .46545E-04
  17  Prefactor     .10000E-03    3.8428       -.57536E-07** at limit **
  18  Prefactor     9.3817        3.7628        .82253E-07   -.41849E-05
  19  Normalizat    .60192        .18922       -.29913E-05    .18569E-04
  20  Prefactor     1.1509        .14146        .11270E-05   -.14477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.701
  Prefactor  = 0.0001
  norm       = 6.05905
  Prefactor  = 0.000100057
  Prefactor  = 6.36847
  Prefactor  = 5.21813
  norm       = 1.27363
  Prefactor  = 104.526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43554
  Prefactor  = 0.0001
  Prefactor  = 12.4907
  Prefactor  = 0.0001
  norm       = 17.6926
  Prefactor  = 1.47467
  Prefactor  = 0.0001
  Prefactor  = 9.3817
  Normalizat = 0.601916
  Prefactor  = 1.15093
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.606     FROM HESSE     STATUS=OK           303 CALLS     2382 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.701        9.6054        .72309E-04   -1.4599    
   2  Prefactor     .10000E-03    78.203        .37898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0591        5.9949        .16311E-03   -1.5216    
   4  Prefactor     .10006E-03    10.653        .74000E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3685        6.3730        .15910E-03   -1.5203    
   6  Prefactor     5.2181        8.6855        .17587E-03   -1.5251    
   7  norm          1.2736        2.0512        .11909E-03   -1.5482    
   8  Prefactor     104.53        105.46        .19676E-03   -1.3660    
   9  Prefactor     .10000E-03    18.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8815        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4355        1.1748        .56682E-04   -1.5396    
  12  Prefactor     .10000E-03    3.8947        .15297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.491        13.992        .11334E-03   -1.5001    
  14  Prefactor     .10000E-03    31.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.693        13.509        .95241E-04   -1.4866    
  16  Prefactor     1.4747        1.9818        .12569E-03   -1.5465    
  17  Prefactor     .10000E-03    3.8621        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.3817        3.7633        .93746E-04   -1.5095    
  19  Normalizat    .60192        .20514        .31432E-03   -1.0790    
  20  Prefactor     1.1509        .15590        .18801E-03   -.87855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09664e-10
Minuit parameter uncertainties:
  1  9.6059
  2  0.000193851
  3  5.99549
  4  0.00156533
  5  6.37363
  6  8.68758
  7  2.05132
  8  105.645
  9  9.22819e-06
  10  2.77226e-06
  11  1.17481
  12  2.33062e-06
  13  13.9959
  14  3.21335e-06
  15  13.5116
  16  1.98188
  17  2.28469e-06
  18  3.76341
  19  0.205401
  20  0.155966
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.249e+01  1.400e+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:  1.151e+00  1.560e-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:  6.019e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 233.016 30.268
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 8.47e-09 +/- 9.49e-09
Energy Flux (Fixed Index): 7.13e-06 +/- 7.99e-06

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

Saving results to:
/scratch/kocevski/538919/likelihoodResults_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.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) = 6351.71994575
delta logL = 0.886088478132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6351.63907335
delta logL = 0.966960879103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.970       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0122       1.0000          .0000       10.000    
     3 'Normalizat'    .60624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1493       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=   6351.639     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      249 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.988        21.380        .91957E-04    .18545E-05
   2  Index         1.0120        .60269        .13172E-01   -.32072E-05
   3  Normalizat    .60621        .18833        .31323E-03   -.11760E-04
   4  Prefactor     1.1494        .15284        .18809E-03    .77695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9875
  Index      = 1.012
  Normalizat = 0.606206
  Prefactor  = 1.14935
 **********
 **   18 **HESSE 
 **********

 FCN=   6351.639     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.988        21.710        .36783E-05   -1.4836    
   2  Index         1.0120        .61189        .52689E-03   -.92331    
   3  Normalizat    .60621        .18845        .12529E-04   -1.0772    
   4  Prefactor     1.1494        .15293        .37617E-04   -.87904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08766e-11
Minuit parameter uncertainties:
  1  21.7192
  2  0.616165
  3  0.18865
  4  0.152988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538919': 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) = 6351.63907268
delta logL = 0.966961554444

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.899e+01  2.172e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.012e+00  6.162e-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:  1.149e+00  1.530e-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:  6.062e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.54
Ra Dec: 233.016 30.268
Photon Index (Free Index): 1.01 +/- 0.62
Photon Flux (Free Index): 3.73e-09 +/- 4.21e-09
Energy Flux (Free Index): 5.24e-05 +/- 7.93e-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/538919/cmap_HighResolution_501897601_502156801_4FGL_J1532.0+3016_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', comment='SUCCESS', photon_flux='8.47e-09', energy_flux2='5.24e-05', photon_flux_error='9.49e-09', dlogl='9.67e-01', energy_flux='7.13e-06', photon_flux2='3.73e-09', job_status='DONE', time_completed='2021-09-12 03:55:36.048758', photon_index_error2='0.62', photon_index2='1.01', ts='2.61', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='4.28e-08', energy_flux_error2='7.93e-05', EG='0.60', time_epoch_completed='1631444136.05', return_code='0', job_id='538919', GAL2='1.15', EG2='0.61', return_code2='0', energy_flux_error='7.99e-06', photon_flux_error2='4.21e-09', ts2='4.54', photon_index='1.92' WHERE bin_id='1013' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 538919: <4FGL_J1532.0+3016_daily_bin1013> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1013 233.016 30.2685 501897601 502156801 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 :                                   609.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            906 sec.

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

