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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1301
RA = 233.016, Dec = 30.2685
tmin = 576547201, tmax = 576806401
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='540408', job_status='RUN', time_executed='2021-09-12 03:47:41.209287', time_epoch_executed='1631443661.21' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540408/ft1_4FGL_J1532.0+3016_daily_bin1301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540408/ft2_4FGL_J1532.0+3016_daily_bin1301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540408/ft1_4FGL_J1532.0+3016_daily_bin1301.fits outfile=/scratch/kocevski/540408/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1301.fits ra=233.016 dec=30.2685 rad=12.0 tmin=576547201.0 tmax=576806401.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.98
user 4.69
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540408/ft1_filtered_4FGL_J1532.0+3016_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/540408/ft2_4FGL_J1532.0+3016_daily_bin1301.fits sctable="SC_DATA" expcube=/scratch/kocevski/540408/ltcube_576547201_576806401_4FGL_J1532.0+3016_daily_bin1301.fits outfile=/scratch/kocevski/540408/expmap_576547201_576806401_4FGL_J1532.0+3016_daily_bin1301.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/540408/ltcube_576547201_576806401_4FGL_J1532.0+3016_daily_bin1301.fits
.....................!
real 192.02
user 187.50
sys 4.12

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/540408/ft1_filtered_4FGL_J1532.0+3016_daily_bin1301.fits scfile=/scratch/kocevski/540408/ft2_4FGL_J1532.0+3016_daily_bin1301.fits outfile=/scratch/kocevski/540408/cmap_576547201_576806401_4FGL_J1532.0+3016_daily_bin1301.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540408/ft1_filtered_4FGL_J1532.0+3016_daily_bin1301.fits scfile=/scratch/kocevski/540408/ft2_4FGL_J1532.0+3016_daily_bin1301.fits outfile=/scratch/kocevski/540408/cmap_HighResolution_576547201_576806401_4FGL_J1532.0+3016_daily_bin1301.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4086       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.185       1.0000         .10000E-03   10000.    
     3 'norm      '    21.536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9689       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54840       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7661       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3161       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3811       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63535       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=   6282.041     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2086 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4088        3.5430        .78431E-07   -.10044E-04
   2  Prefactor     15.192        40.779       -.94484E-06   -.11139E-04
   3  norm          21.537        10.840        .24536E-07    .10198E-04
   4  Prefactor     .10000E-03    5.9081        .11860E-07** at limit **
   5  Prefactor     .10000E-03    1.9043       -.34527E-07** at limit **
   6  Prefactor     1.9674        17.117       -.14002E-05    .45964E-04
   7  norm          .10000E-03    .44523       -.18719E-06** at limit **
   8  Prefactor     44.565        78.268       -.34667E-05   -.39739E-04
   9  Prefactor     .10000E-03    47.659       -.15602E-05** at limit **
  10  Prefactor     .10000E-03    7.6622        .34295E-06** at limit **
  11  norm          1.9634        1.4678       -.58003E-06   -.19171E-02
  12  Prefactor     .58310        50.405        .99830E-05   -.17005E-03
  13  Prefactor     2.7603        39.982       -.37385E-05   -.62792E-04
  14  Prefactor     .10000E-03    54.339        .12316E-05** at limit **
  15  norm          .10000E-03    17.286       -.71095E-07** at limit **
  16  Prefactor     3.3167        2.5498       -.11346E-06   -.23890E-03
  17  Prefactor     12.949        9.0804       -.15992E-07    .57640E-05
  18  Prefactor     .10000E-03    1.4706       -.25289E-06** at limit **
  19  Normalizat    1.3807        .19940       -.42400E-06   -.44490E-03
  20  Prefactor     .63560        .13338        .49904E-06    .94181E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40877
  Prefactor  = 15.1921
  norm       = 21.5371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96735
  norm       = 0.0001
  Prefactor  = 44.5652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96339
  Prefactor  = 0.5831
  Prefactor  = 2.76031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.31672
  Prefactor  = 12.9494
  Prefactor  = 0.0001
  Normalizat = 1.38074
  Prefactor  = 0.635603
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.041     FROM HESSE     STATUS=OK           295 CALLS     2381 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4088        3.5477        .14841E-03   -1.5339    
   2  Prefactor     15.192        40.765        .10278E-03   -1.4928    
   3  norm          21.537        10.840        .86310E-04   -1.4779    
   4  Prefactor     .10000E-03    5.9195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9056        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9674        17.005        .29552E-03   -1.5427    
   7  norm          .10000E-03    .44189        .51192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.565        77.700        .60076E-04   -1.4372    
   9  Prefactor     .10000E-03    47.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9634        1.5322        .64513E-04   -1.5428    
  12  Prefactor     .58310        61.231        .41612E-02   -1.5555    
  13  Prefactor     2.7603        40.871        .24472E-03   -1.5376    
  14  Prefactor     .10000E-03    55.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3167        2.5492        .10587E-03   -1.5344    
  17  Prefactor     12.949        9.0795        .11131E-03   -1.4988    
  18  Prefactor     .10000E-03    2.8076        .18495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3807        .21975        .23361E-03   -.81187    
  20  Prefactor     .63560        .14984        .23736E-03   -1.0611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05085e-09
Minuit parameter uncertainties:
  1  3.54794
  2  40.8399
  3  10.8415
  4  5.12753e-06
  5  1.90056e-06
  6  11.5723
  7  3.25367e-06
  8  77.8775
  9  0.000199084
  10  1.16035e-08
  11  1.53222
  12  11.962
  13  21.2601
  14  0.000120424
  15  1.30823e-05
  16  2.54933
  17  9.08043
  18  5.27925e-05
  19  0.219902
  20  0.14993
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  6.356e-01  1.499e-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.381e+00  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/540408/likelihoodResults_576547201_576806401_4FGL_J1532.0+3016_daily_bin1301.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) = 6281.55783914
delta logL = 0.483404402285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6281.14009919
delta logL = 0.901144345269

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     '    6.6491       1.0000          .0000       10.000    
     3 'Normalizat'    1.3010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67260       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=   6281.140     FROM MIGRAD    STATUS=CONVERGED    231 CALLS      557 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25521E-02    .33077E-03** at limit **
   2  Index         6.6491        1.6623        .92177E-01    .24508E-03
   3  Normalizat    1.3010        .43520E-01    .54070E-01    .14745E-03
   4  Prefactor     .67267        .30979E-01    .42035E-01    .15796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.6491
  Normalizat = 1.30102
  Prefactor  = 0.672672
 **********
 **   18 **HESSE 
 **********

 FCN=   6281.140     FROM HESSE     STATUS=OK            31 CALLS      588 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12002E-02    .92530E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6491        .26832        .32944E-02    .33611    
   3  Normalizat    1.3010        .20920        .23908E-03   -.83536    
   4  Prefactor     .67267        .14811        .23132E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74584e-11
Minuit parameter uncertainties:
  1  2.90141e-10
  2  0.268463
  3  0.209335
  4  0.148194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540408': 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) = 6281.14009701
delta logL = 0.901146527484

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  6.727e-01  1.482e-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.301e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 233.016 30.268
Photon Index (Free Index): 6.65 +/- 0.27
Photon Flux (Free Index): 8.39e-08 +/- 7.05e-08
Energy Flux (Free Index): 1.02e-05 +/- 8.47e-06

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/540408/cmap_HighResolution_576547201_576806401_4FGL_J1532.0+3016_daily_bin1301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='9.01e-01', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-09-12 03:58:43.287212', photon_index_error2='0.27', photon_index2='6.65', ts='0.02', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='5.01e-08', energy_flux_error2='8.47e-06', EG='1.38', time_epoch_completed='1631444323.29', return_code='0', job_id='540408', GAL2='0.67', EG2='1.30', return_code2='0', photon_flux_error2='7.05e-08', ts2='1.93', photon_index='1.92' WHERE bin_id='1301' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:58:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 540408: <4FGL_J1532.0+3016_daily_bin1301> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1301 233.016 30.2685 576547201 576806401 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            808 sec.

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

