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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin2
RA = 233.016, Dec = 30.2685
tmin = 239846401, tmax = 240105601
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='534235', job_status='RUN', time_executed='2021-09-12 03:28:22.588247', time_epoch_executed='1631442502.59' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534235/ft1_4FGL_J1532.0+3016_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534235/ft2_4FGL_J1532.0+3016_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534235/ft1_4FGL_J1532.0+3016_daily_bin2.fits outfile=/scratch/kocevski/534235/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin2.fits ra=233.016 dec=30.2685 rad=12.0 tmin=239846401.0 tmax=240105601.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.44
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534235/ft1_filtered_4FGL_J1532.0+3016_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/534235/ft2_4FGL_J1532.0+3016_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/534235/ltcube_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.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/534235/ft2_4FGL_J1532.0+3016_daily_bin2.fits
.....................!
real 12.82
user 12.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534235/ft1_filtered_4FGL_J1532.0+3016_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/534235/ft2_4FGL_J1532.0+3016_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/534235/ltcube_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.fits outfile=/scratch/kocevski/534235/expmap_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.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/534235/ltcube_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.fits
.....................!
real 192.65
user 186.51
sys 5.81

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/534235/ft1_filtered_4FGL_J1532.0+3016_daily_bin2.fits scfile=/scratch/kocevski/534235/ft2_4FGL_J1532.0+3016_daily_bin2.fits outfile=/scratch/kocevski/534235/cmap_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534235/ft1_filtered_4FGL_J1532.0+3016_daily_bin2.fits scfile=/scratch/kocevski/534235/ft2_4FGL_J1532.0+3016_daily_bin2.fits outfile=/scratch/kocevski/534235/cmap_HighResolution_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=233.016 yref=30.2685 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.195       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .49234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.989       1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0684       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7348       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8823       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3835       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65551       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=   6238.710     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1986 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5076        .67012E-09** at limit **
   2  Prefactor     37.189        41.817       -.53738E-06   -.98644E-04
   3  norm          .10000E-03    3.1268        .13118E-07** at limit **
   4  Prefactor     .10000E-03    4.8305        .10607E-06** at limit **
   5  Prefactor     10.604        9.9019       -.38182E-06   -.14544E-03
   6  Prefactor     .10000E-03    2.6801        .67109E-08** at limit **
   7  norm          .49355        1.8762        .87817E-06   -.15128E-03
   8  Prefactor     37.975        60.811       -.19204E-05   -.12704E-03
   9  Prefactor     70.205        45.867       -.13644E-06   -.42751E-04
  10  Prefactor     8.0682        7.3449        .12180E-05   -.31512E-03
  11  norm          4.8678        1.5014       -.19677E-07   -.43208E-04
  12  Prefactor     .10000E-03    3.9028       -.32496E-07** at limit **
  13  Prefactor     .10000E-03    13.875       -.70731E-08** at limit **
  14  Prefactor     .10000E-03    7.9640        .54621E-07** at limit **
  15  norm          .10000E-03    5.7328       -.13677E-06** at limit **
  16  Prefactor     8.7346        3.6491       -.42266E-09   -.21993E-04
  17  Prefactor     .10000E-03    3.9441        .22483E-07** at limit **
  18  Prefactor     4.8820        3.8124        .21872E-07   -.83021E-05
  19  Normalizat    1.3836        .19622        .40156E-06   -.10387E-03
  20  Prefactor     .65544        .13356       -.70399E-06   -.35189E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 37.1888
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6045
  Prefactor  = 0.0001
  norm       = 0.493554
  Prefactor  = 37.9751
  Prefactor  = 70.2045
  Prefactor  = 8.06821
  norm       = 4.86784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73461
  Prefactor  = 0.0001
  Prefactor  = 4.88201
  Normalizat = 1.38362
  Prefactor  = 0.655445
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.710     FROM HESSE     STATUS=OK           285 CALLS     2271 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5098        .94712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.189        42.423        .65715E-04   -1.4488    
   3  norm          .10000E-03    3.1277        .13641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8497        .16979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.604        9.6887        .12303E-03   -1.5057    
   6  Prefactor     .10000E-03    2.6851        .12628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .49355        1.8582        .18075E-03   -1.5567    
   8  Prefactor     37.975        62.260        .65027E-04   -1.4475    
   9  Prefactor     70.205        45.926        .47908E-04   -1.4030    
  10  Prefactor     8.0682        7.3074        .70575E-03   -1.5140    
  11  norm          4.8678        1.5047        .51358E-04   -1.5267    
  12  Prefactor     .10000E-03    3.9172        .15229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.7576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7346        3.6558        .92151E-04   -1.5117    
  17  Prefactor     .10000E-03    3.9671        .15318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8820        3.8335        .12981E-03   -1.5266    
  19  Normalizat    1.3836        .22597        .24185E-03   -.81103    
  20  Prefactor     .65544        .15220        .24504E-03   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11088e-10
Minuit parameter uncertainties:
  1  1.82866e-08
  2  42.4574
  3  2.37923e-06
  4  2.90778e-05
  5  9.69017
  6  4.23453e-07
  7  1.85837
  8  62.3672
  9  45.9497
  10  7.30817
  11  1.50475
  12  7.83719e-06
  13  6.06691e-06
  14  1.67848e-05
  15  3.27428e-05
  16  3.65588
  17  1.82867e-06
  18  3.83372
  19  0.226137
  20  0.152292
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  6.554e-01  1.523e-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.384e+00  2.261e-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: 4.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534235/likelihoodResults_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.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) = 6238.7104741
delta logL = -0.000342286721207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6238.71013191
delta logL = -9.03737600311e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8913       1.0000          .0000       10.000    
     3 'Normalizat'    1.3836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65546       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=   6238.710     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10144E-03    92.872        .18142E-02** at limit **
   2  Index         1.8363        8.8648        .50000        .14894E-04
   3  Normalizat    1.3836        .11887E-01    .24185E-03    .43716E-05
   4  Prefactor     .65544        .86634E-02    .24504E-03    .22594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101443
  Index      = 1.83634
  Normalizat = 1.38362
  Prefactor  = 0.655444
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.710     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10144E-03    404.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8363        5.0633        .50000       -.68508    
   3  Normalizat    1.3836        .25508E-01    .96741E-05   -.81103    
   4  Prefactor     .65544        .18590E-01    .98018E-05   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82874e-08
Minuit parameter uncertainties:
  1  0.0486593
  2  437.772
  3  0.0255082
  4  0.0185906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534235': 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) = 6238.71013149
delta logL = 3.2471416489e-07

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.014e-04  4.866e-02  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.836e+00  4.378e+02  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.554e-01  1.859e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.384e+00  2.551e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 233.016 30.268

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/534235/cmap_HighResolution_239846401_240105601_4FGL_J1532.0+3016_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.66e-08', time_completed='2021-09-12 03:38:14.834618', job_id='534235', GAL2='0.66', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631443094.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='2' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:38:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 534235: <4FGL_J1532.0+3016_daily_bin2> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin2 233.016 30.2685 239846401 240105601 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 :                                   588.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             236.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            775 sec.

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

