/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 187 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1532.0+3016_daily_bin55
RA = 233.016, Dec = 30.2685
tmin = 253584001, tmax = 253843201
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='534317', job_status='RUN', time_executed='2021-09-12 03:28:44.141469', time_epoch_executed='1631442524.14' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534317

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534317/ft1_4FGL_J1532.0+3016_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534317/ft2_4FGL_J1532.0+3016_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534317/ft1_4FGL_J1532.0+3016_daily_bin55.fits outfile=/scratch/kocevski/534317/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin55.fits ra=233.016 dec=30.2685 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.43
user 1.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534317/ft1_filtered_4FGL_J1532.0+3016_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/534317/ft2_4FGL_J1532.0+3016_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/534317/ltcube_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.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/534317/ft2_4FGL_J1532.0+3016_daily_bin55.fits
.....................!
real 13.40
user 12.91
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534317/ft1_filtered_4FGL_J1532.0+3016_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/534317/ft2_4FGL_J1532.0+3016_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/534317/ltcube_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.fits outfile=/scratch/kocevski/534317/expmap_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.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/534317/ltcube_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.fits
.....................!
real 195.74
user 187.42
sys 7.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/534317/ft1_filtered_4FGL_J1532.0+3016_daily_bin55.fits scfile=/scratch/kocevski/534317/ft2_4FGL_J1532.0+3016_daily_bin55.fits outfile=/scratch/kocevski/534317/cmap_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.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/534317/ft1_filtered_4FGL_J1532.0+3016_daily_bin55.fits scfile=/scratch/kocevski/534317/ft2_4FGL_J1532.0+3016_daily_bin55.fits outfile=/scratch/kocevski/534317/cmap_HighResolution_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6908       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6595       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.084       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6375       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7224       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2555       1.0000         .10000E-03   10000.    
    11 'norm      '    12.231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2842       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93262       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1306       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=   6685.739     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1782 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4155       -.51322E-07** at limit **
   2  Prefactor     8.6878        27.103        .60628E-07   -.15269E-04
   3  norm          .10000E-03    2.8325       -.17520E-07** at limit **
   4  Prefactor     .10000E-03    5.1601        .49095E-07** at limit **
   5  Prefactor     7.6590        7.9457       -.10360E-06   -.89921E-04
   6  Prefactor     15.083        10.120        .29267E-05   -.26220E-04
   7  norm          2.6376        1.6567        .29715E-07   -.11470E-03
   8  Prefactor     .10000E-03    34.257       -.14349E-05** at limit **
   9  Prefactor     2.6006        169.90       -.49155E-05   -.15714E-04
  10  Prefactor     8.2546        8.1947        .32704E-05   -.54608E-04
  11  norm          12.231        2.2136       -.22998E-07   -.84212E-04
  12  Prefactor     .10000E-03    5.2440       -.65844E-08** at limit **
  13  Prefactor     12.705        24.162        .10897E-05   -.86685E-05
  14  Prefactor     .10000E-03    38.199        .13334E-05** at limit **
  15  norm          .10000E-03    8.9876       -.49159E-08** at limit **
  16  Prefactor     .10000E-03    .79677        .95460E-08** at limit **
  17  Prefactor     .10000E-03    2.4665        .27489E-09** at limit **
  18  Prefactor     3.2840        2.6951       -.22061E-06   -.12780E-02
  19  Normalizat    .93263        .19707       -.51658E-06   -.35246E-04
  20  Prefactor     1.1306        .15059       -.48202E-06   -.74663E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.68777
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65897
  Prefactor  = 15.0832
  norm       = 2.63757
  Prefactor  = 0.0001
  Prefactor  = 2.60064
  Prefactor  = 8.25463
  norm       = 12.2306
  Prefactor  = 0.0001
  Prefactor  = 12.7053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28405
  Normalizat = 0.932631
  Prefactor  = 1.13061
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.739     FROM HESSE     STATUS=OK           295 CALLS     2077 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.350        .29428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6878        27.126        .13597E-03   -1.5118    
   3  norm          .10000E-03    2.8330        .13440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1676        .18139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6590        7.9483        .14490E-03   -1.5154    
   6  Prefactor     15.083        10.041        .10313E-03   -1.4931    
   7  norm          2.6376        1.6557        .77980E-04   -1.5383    
   8  Prefactor     .10000E-03    34.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6006        171.49        .24682E-03   -1.5385    
  10  Prefactor     8.2546        8.0951        .13953E-03   -1.5133    
  11  norm          12.231        2.2164        .48811E-04   -1.5008    
  12  Prefactor     .10000E-03    5.2553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.705        24.143        .11237E-03   -1.4995    
  14  Prefactor     .10000E-03    38.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.0141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .80151        .71252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4693        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2840        2.7431        .59759E-03   -1.5346    
  19  Normalizat    .93263        .22782        .30176E-03   -.95323    
  20  Prefactor     1.1306        .17405        .21517E-03   -.88494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06162e-10
Minuit parameter uncertainties:
  1  8.03249e-06
  2  27.1643
  3  3.67445e-07
  4  2.09946e-06
  5  7.94935
  6  10.0422
  7  1.65573
  8  8.10393e-06
  9  42.3626
  10  8.09621
  11  2.2164
  12  2.33229e-06
  13  24.1615
  14  4.08727e-05
  15  5.86665e-06
  16  2.21109e-07
  17  1.18251e-06
  18  2.74321
  19  0.228061
  20  0.17414
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.271e+01  2.416e+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.131e+00  1.741e-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:  9.326e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/534317/likelihoodResults_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.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) = 6685.42966482
delta logL = 0.309091527333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6685.4274213
delta logL = 0.311335052114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.245       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2705       1.0000          .0000       10.000    
     3 'Normalizat'    .93613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1289       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=   6685.427     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      300 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.247        30.586        .86899E-04   -.82483E-03
   2  Index         1.2704        .75413        .13403E-01   -.31089E-03
   3  Normalizat    .93621        .22025        .30123E-03    .15451E-03
   4  Prefactor     1.1289        .17227        .21527E-03    .22662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2474
  Index      = 1.27044
  Normalizat = 0.936207
  Prefactor  = 1.12886
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.427     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.247        30.895        .17380E-04   -1.4786    
   2  Index         1.2704        .76188        .53613E-03   -.84190    
   3  Normalizat    .93621        .22043        .12049E-04   -.95199    
   4  Prefactor     1.1289        .17241        .43054E-04   -.88549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02811e-08
Minuit parameter uncertainties:
  1  30.9179
  2  0.768683
  3  0.220645
  4  0.172496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534317': 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) = 6685.42742123
delta logL = 0.311335123591

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  2.125e+01  3.092e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.270e+00  7.687e-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.129e+00  1.725e-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:  9.362e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 233.016 30.268
Photon Index (Free Index): 1.27 +/- 0.77
Photon Flux (Free Index): 4.68e-09 +/- 8.27e-09
Energy Flux (Free Index): 3.15e-05 +/- 6.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/534317/cmap_HighResolution_253584001_253843201_4FGL_J1532.0+3016_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', comment='SUCCESS', energy_flux2='3.15e-05', dlogl='3.11e-01', photon_flux2='4.68e-09', job_status='DONE', time_completed='2021-09-12 03:38:52.150191', photon_index_error2='0.77', photon_index2='1.27', ts='0.43', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='6.39e-08', energy_flux_error2='6.13e-05', EG='0.93', time_epoch_completed='1631443132.15', return_code='0', job_id='534317', GAL2='1.13', EG2='0.94', return_code2='0', photon_flux_error2='8.27e-09', ts2='1.05', photon_index='1.92' WHERE bin_id='55' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 534317: <4FGL_J1532.0+3016_daily_bin55> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin55> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 03:25:25 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:25:27 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:25:27 2021
Terminated at Sun Sep 12 03:38:52 2021
Results reported at Sun Sep 12 03:38:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin55 233.016 30.2685 253584001 253843201 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 :                                   605.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

