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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1601
RA = 233.016, Dec = 30.2685
tmin = 654307201, tmax = 654566401
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='542761', job_status='RUN', time_executed='2021-09-29 00:16:04.206649', time_epoch_executed='1632899764.21' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542761/ft1_4FGL_J1532.0+3016_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542761/ft2_4FGL_J1532.0+3016_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542761/ft1_4FGL_J1532.0+3016_daily_bin1601.fits outfile=/scratch/kocevski/542761/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1601.fits ra=233.016 dec=30.2685 rad=12.0 tmin=654307201.0 tmax=654566401.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.23
user 3.98
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542761/ft1_filtered_4FGL_J1532.0+3016_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542761/ft2_4FGL_J1532.0+3016_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542761/ltcube_654307201_654566401_4FGL_J1532.0+3016_daily_bin1601.fits outfile=/scratch/kocevski/542761/expmap_654307201_654566401_4FGL_J1532.0+3016_daily_bin1601.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/542761/ltcube_654307201_654566401_4FGL_J1532.0+3016_daily_bin1601.fits
.....................!
real 190.31
user 184.95
sys 5.04

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/542761/ft1_filtered_4FGL_J1532.0+3016_daily_bin1601.fits scfile=/scratch/kocevski/542761/ft2_4FGL_J1532.0+3016_daily_bin1601.fits outfile=/scratch/kocevski/542761/cmap_654307201_654566401_4FGL_J1532.0+3016_daily_bin1601.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542761/ft1_filtered_4FGL_J1532.0+3016_daily_bin1601.fits scfile=/scratch/kocevski/542761/ft2_4FGL_J1532.0+3016_daily_bin1601.fits outfile=/scratch/kocevski/542761/cmap_HighResolution_654307201_654566401_4FGL_J1532.0+3016_daily_bin1601.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    16.152       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6913       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5991       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6031       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2410       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2718       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1463       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98897       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=   6415.226     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2070 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3963       -.47554E-07** at limit **
   2  Prefactor     16.110        46.845        .32506E-05   -.20750E-03
   3  norm          3.6883        8.5065        .33662E-06   -.84982E-04
   4  Prefactor     7.5138        16.421       -.15001E-06   -.19630E-03
   5  Prefactor     16.709        10.053       -.17945E-06   -.14638E-03
   6  Prefactor     8.5987        8.6746        .66387E-06   -.15439E-04
   7  norm          1.3894        1.4830       -.80097E-07   -.33415E-03
   8  Prefactor     .10000E-03    32.363        .55324E-06** at limit **
   9  Prefactor     .10000E-03    30.313       -.49082E-06** at limit **
  10  Prefactor     .10000E-03    3.2748        .62280E-07** at limit **
  11  norm          .10000E-03    .44891        .82855E-07** at limit **
  12  Prefactor     1.5941        9.8589        .13549E-04   -.15199E-03
  13  Prefactor     .10000E-03    21.589        .29090E-06** at limit **
  14  Prefactor     .10000E-03    6.9565        .11583E-06** at limit **
  15  norm          .10000E-03    4.2000        .10052E-06** at limit **
  16  Prefactor     4.6030        3.2445       -.24099E-06   -.24716E-03
  17  Prefactor     5.2381        12.757        .12312E-05   -.58752E-05
  18  Prefactor     7.2711        4.3551        .51636E-07   -.80228E-04
  19  Normalizat    1.1466        .20598        .32465E-05    .84449E-04
  20  Prefactor     .98880        .14678       -.44982E-05   -.54244E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.11
  norm       = 3.6883
  Prefactor  = 7.51377
  Prefactor  = 16.7089
  Prefactor  = 8.59873
  norm       = 1.38937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.59413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.60305
  Prefactor  = 5.23814
  Prefactor  = 7.27105
  Normalizat = 1.14662
  Prefactor  = 0.988795
 **********
 **   18 **HESSE 
 **********

 FCN=   6415.226     FROM HESSE     STATUS=OK           291 CALLS     2361 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4102        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.110        47.696        .99656E-04   -1.4905    
   3  norm          3.6883        8.4800        .21021E-03   -1.5324    
   4  Prefactor     7.5138        16.395        .14613E-03   -1.5160    
   5  Prefactor     16.709        10.017        .97978E-04   -1.4890    
   6  Prefactor     8.5987        8.6739        .68349E-03   -1.5121    
   7  norm          1.3894        1.4680        .93660E-04   -1.5472    
   8  Prefactor     .10000E-03    32.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2869        .14154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .46464        .10499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5941        10.604        .16781E-02   -1.5455    
  13  Prefactor     .10000E-03    21.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2038        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6030        3.2441        .11480E-03   -1.5279    
  17  Prefactor     5.2381        12.763        .17558E-03   -1.5250    
  18  Prefactor     7.2711        4.3620        .12409E-03   -1.5169    
  19  Normalizat    1.1466        .25378        .27733E-03   -.88269    
  20  Prefactor     .98880        .17817        .21996E-03   -.93104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89063e-09
Minuit parameter uncertainties:
  1  3.55732e-06
  2  47.8087
  3  8.4828
  4  16.4052
  5  10.0185
  6  8.67514
  7  1.46804
  8  7.54506e-05
  9  0.000235302
  10  5.85877e-06
  11  3.35238e-06
  12  8.22473
  13  3.54575e-05
  14  1.67888e-05
  15  1.02909e-05
  16  3.24427
  17  12.7699
  18  4.3622
  19  0.25405
  20  0.178274
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.888e-01  1.783e-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.147e+00  2.541e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542761/likelihoodResults_654307201_654566401_4FGL_J1532.0+3016_daily_bin1601.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) = 6415.2257813
delta logL = -0.000220230863306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6415.22556102
delta logL = 4.73664840683e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0068       1.0000          .0000       10.000    
     3 'Normalizat'    1.1466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98880       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=   6415.226     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    741.72        .90712E-02** at limit **
   2  Index         2.0147        5.8981        .50000       -.29922E-05
   3  Normalizat    1.1466        .30687E-01    .62696E-01    .30861E-05
   4  Prefactor     .98880        .22908E-01    .46127E-01   -.15729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01467
  Normalizat = 1.14661
  Prefactor  = 0.988801
 **********
 **   18 **HESSE 
 **********

 FCN=   6415.226     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6532.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0147        5.1284        .50000       -.63984    
   3  Normalizat    1.1466        .82324E-01    .27732E-03   -.88269    
   4  Prefactor     .98880        .61493E-01    .21996E-03   -.93104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.16866e-09
Minuit parameter uncertainties:
  1  0.000839956
  2  50.1522
  3  0.082333
  4  0.0614974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542761': 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) = 6415.22556101
delta logL = 6.09034032095e-08

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.400e-04  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.015e+00  5.015e+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:  9.888e-01  6.150e-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.147e+00  8.233e-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/542761/cmap_HighResolution_654307201_654566401_4FGL_J1532.0+3016_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-29 00:26:02.872306', job_id='542761', GAL2='0.99', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632900362.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1601' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:26:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 542761: <4FGL_J1532.0+3016_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:52 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:54 2021
Terminated at Wed Sep 29 00:26:03 2021
Results reported at Wed Sep 29 00:26:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1601 233.016 30.2685 654307201 654566401 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 :                                   597.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

