/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 9 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1532.0+3016_daily_bin194
RA = 233.016, Dec = 30.2685
tmin = 289612801, tmax = 289872001
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='534532', job_status='RUN', time_executed='2021-09-12 03:25:58.080487', time_epoch_executed='1631442358.08' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534532/ft1_4FGL_J1532.0+3016_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534532/ft2_4FGL_J1532.0+3016_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534532/ft1_4FGL_J1532.0+3016_daily_bin194.fits outfile=/scratch/kocevski/534532/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin194.fits ra=233.016 dec=30.2685 rad=12.0 tmin=289612801.0 tmax=289872001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.50
user 3.25
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534532/ft1_filtered_4FGL_J1532.0+3016_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/534532/ft2_4FGL_J1532.0+3016_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/534532/ltcube_289612801_289872001_4FGL_J1532.0+3016_daily_bin194.fits outfile=/scratch/kocevski/534532/expmap_289612801_289872001_4FGL_J1532.0+3016_daily_bin194.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/534532/ltcube_289612801_289872001_4FGL_J1532.0+3016_daily_bin194.fits
.....................!
real 190.91
user 185.97
sys 4.56

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/534532/ft1_filtered_4FGL_J1532.0+3016_daily_bin194.fits scfile=/scratch/kocevski/534532/ft2_4FGL_J1532.0+3016_daily_bin194.fits outfile=/scratch/kocevski/534532/cmap_289612801_289872001_4FGL_J1532.0+3016_daily_bin194.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534532/ft1_filtered_4FGL_J1532.0+3016_daily_bin194.fits scfile=/scratch/kocevski/534532/ft2_4FGL_J1532.0+3016_daily_bin194.fits outfile=/scratch/kocevski/534532/cmap_HighResolution_289612801_289872001_4FGL_J1532.0+3016_daily_bin194.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/534532/ft1_filtered_4FGL_J1532.0+3016_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/534532/ft2_4FGL_J1532.0+3016_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534532/Model_4FGL_J1532.0+3016_daily_bin194.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/534532/ft1_filtered_4FGL_J1532.0+3016_daily_bin194.fits.....................!
real 51.58
user 50.22
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0746       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7527       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0659       1.0000         .10000E-03   10000.    
     7 'norm      '    .35625E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15604E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.055       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .65488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2984       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95024       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=   6800.880     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     2128 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9223        .15879E-02** at limit **
   2  Prefactor     4.0753        29.420        .19974E-03   -.67733E-05
   3  norm          5.7530        5.7554        .16746E-03   -.44196E-04
   4  Prefactor     .10000E-03    4.0743        .16237E-02** at limit **
   5  Prefactor     .10000E-03    4.5259        .17041E-02** at limit **
   6  Prefactor     1.0732        18.395        .23615E-02   -.12031E-03
   7  norm          .10001E-03    11.616        .12116E-02** at limit **
   8  Prefactor     .10021E-03    39.042        .17034    ** at limit **
   9  Prefactor     .10000E-03    50.949        .18142E-02** at limit **
  10  Prefactor     .10000E-03    3.5985        .15232E-02** at limit **
  11  norm          9.4533        1.7484        .44327E-04    .15349E-02
  12  Prefactor     .10000E-03    7.8579        .18142E-02** at limit **
  13  Prefactor     17.062        24.855        .96983E-04    .43138E-04
  14  Prefactor     .10000E-03    6.2546        .18142E-02** at limit **
  15  norm          .65748        19.050        .40928E-02    .23848E-03
  16  Prefactor     3.2984        2.3292        .10153E-03    .22194E-03
  17  Prefactor     18.036        13.371        .94306E-04   -.16033E-04
  18  Prefactor     .10000E-03    4.9353        .23759E-02** at limit **
  19  Normalizat    1.0089        .20386        .26275E-03   -.43669E-03
  20  Prefactor     .95021        .15744        .21198E-03   -.95165E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 4.07525
  norm       = 5.75302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07322
  norm       = 0.000100005
  Prefactor  = 0.00010021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.45325
  Prefactor  = 0.000100001
  Prefactor  = 17.0624
  Prefactor  = 0.0001
  norm       = 0.657479
  Prefactor  = 3.29839
  Prefactor  = 18.0365
  Prefactor  = 0.0001
  Normalizat = 1.00893
  Prefactor  = 0.950209
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.880     FROM HESSE     STATUS=OK           285 CALLS     2413 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9233        .31757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0753        29.412        .79894E-05   -1.5304    
   3  norm          5.7530        5.7554        .66984E-05   -1.5228    
   4  Prefactor     .10000E-03    4.0746        .32473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5275        .34083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0732        18.348        .94461E-04   -1.5501    
   7  norm          .10001E-03    11.842        .24233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10021E-03    39.182        .16966       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5990        .30464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4533        1.7481        .88654E-05   -1.5093    
  12  Prefactor     .10000E-03    7.8607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.062        24.850        .38793E-05   -1.4882    
  14  Prefactor     .10000E-03    6.2546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .65748        19.124        .16371E-03   -1.5546    
  16  Prefactor     3.2984        2.3290        .40611E-05   -1.5345    
  17  Prefactor     18.036        13.368        .37723E-05   -1.4858    
  18  Prefactor     .10000E-03    4.9623        .47518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0089        .20379        .52550E-04   -.92732    
  20  Prefactor     .95021        .15751        .42395E-04   -.94408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90465e-09
Minuit parameter uncertainties:
  1  2.06923e-05
  2  21.9114
  3  5.75593
  4  1.17011e-05
  5  2.27329e-05
  6  8.87769
  7  0.000498293
  8  0.0057386
  9  0.000174675
  10  2.22565e-05
  11  1.74812
  12  0.000172594
  13  24.8649
  14  1.48602e-05
  15  7.09389
  16  2.32906
  17  13.3706
  18  2.00843e-06
  19  0.203946
  20  0.157591
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.706e+01  2.486e+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:  9.502e-01  1.576e-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.009e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/534532/likelihoodResults_289612801_289872001_4FGL_J1532.0+3016_daily_bin194.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) = 6800.77040378
delta logL = 0.109747036483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6800.763705
delta logL = 0.11644582288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9660       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6463       1.0000          .0000       10.000    
     3 'Normalizat'    .99067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95780       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=   6800.764     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      328 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9575        478.65        .15200E-03    .68959E-04
   2  Index         2.6469        5.5481        .78282E-02    .53997E-04
   3  Normalizat    .99005        .26665        .26471E-03    .20993E-03
   4  Prefactor     .95830        .16360        .21109E-03   -.44449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9575
  Index      = 2.64691
  Normalizat = 0.990047
  Prefactor  = 0.958302
 **********
 **   18 **HESSE 
 **********

 FCN=   6800.764     FROM HESSE     STATUS=OK            25 CALLS      353 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9575        24.483        .60801E-05   -1.5180    
   2  Index         2.6469        1.7151        .31313E-03   -.48999    
   3  Normalizat    .99005        .20527        .10588E-04   -.93365    
   4  Prefactor     .95830        .15789        .42219E-04   -.94133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33201e-09
Minuit parameter uncertainties:
  1  24.5181
  2  1.76157
  3  0.205433
  4  0.157968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534532': 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) = 6800.7636996
delta logL = 0.116451214666

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  6.958e+00  2.452e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.647e+00  1.762e+00  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.583e-01  1.580e-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.900e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 233.016 30.268
Photon Index (Free Index): 2.65 +/- 1.76
Photon Flux (Free Index): 2.99e-08 +/- 5.73e-08
Energy Flux (Free Index): 7.52e-06 +/- 8.89e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/534532/cmap_HighResolution_289612801_289872001_4FGL_J1532.0+3016_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', comment='SUCCESS', energy_flux2='7.52e-06', dlogl='1.16e-01', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-09-12 03:36:56.246339', photon_index_error2='1.76', photon_index2='2.65', ts='0.82', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='6.18e-08', energy_flux_error2='8.89e-06', EG='1.01', time_epoch_completed='1631443016.25', return_code='0', job_id='534532', GAL2='0.96', EG2='0.99', return_code2='0', photon_flux_error2='5.73e-08', ts2='1.06', photon_index='1.92' WHERE bin_id='194' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:36:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 534532: <4FGL_J1532.0+3016_daily_bin194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin194 233.016 30.2685 289612801 289872001 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 :                                   654.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

