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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin50
RA = 233.016, Dec = 30.2685
tmin = 252288001, tmax = 252547201
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='534309', job_status='RUN', time_executed='2021-09-12 03:28:24.092951', time_epoch_executed='1631442504.09' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534309/ft1_4FGL_J1532.0+3016_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534309/ft2_4FGL_J1532.0+3016_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534309/ft1_4FGL_J1532.0+3016_daily_bin50.fits outfile=/scratch/kocevski/534309/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin50.fits ra=233.016 dec=30.2685 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.57
user 2.35
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534309/ft1_filtered_4FGL_J1532.0+3016_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/534309/ft2_4FGL_J1532.0+3016_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/534309/ltcube_252288001_252547201_4FGL_J1532.0+3016_daily_bin50.fits outfile=/scratch/kocevski/534309/expmap_252288001_252547201_4FGL_J1532.0+3016_daily_bin50.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/534309/ltcube_252288001_252547201_4FGL_J1532.0+3016_daily_bin50.fits
.....................!
real 190.64
user 185.41
sys 4.84

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/534309/ft1_filtered_4FGL_J1532.0+3016_daily_bin50.fits scfile=/scratch/kocevski/534309/ft2_4FGL_J1532.0+3016_daily_bin50.fits outfile=/scratch/kocevski/534309/cmap_252288001_252547201_4FGL_J1532.0+3016_daily_bin50.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534309/ft1_filtered_4FGL_J1532.0+3016_daily_bin50.fits scfile=/scratch/kocevski/534309/ft2_4FGL_J1532.0+3016_daily_bin50.fits outfile=/scratch/kocevski/534309/cmap_HighResolution_252288001_252547201_4FGL_J1532.0+3016_daily_bin50.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0203       1.0000         .10000E-03   10000.    
     7 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    164.86       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.973       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17786E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.764       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11479E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0076       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=   7430.782     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2083 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6932        .90712E-02** at limit **
   2  Prefactor     .10000E-03    16.373        .90712E-02** at limit **
   3  norm          9.9001        7.6880        .31840E-02    .81782E-03
   4  Prefactor     .10000E-03    53.620        .90712E-02** at limit **
   5  Prefactor     6.1841        8.0012        .40363E-02   -.21313E-03
   6  Prefactor     3.0201        5.3004        .58379E-02    .45711E-03
   7  norm          .10000E-03    .86922        .30756E-01** at limit **
   8  Prefactor     164.86        98.484        .78533E-03   -.57022E-03
   9  Prefactor     42.386        48.314        .15393E-02    .21624E-03
  10  Prefactor     .10000E-03    3.6653        .90712E-02** at limit **
  11  norm          13.974        2.1836        .26788E-02   -.73916E-02
  12  Prefactor     .10000E-03    12.143        .90712E-02** at limit **
  13  Prefactor     .10001E-03    258.45        .90712E-02** at limit **
  14  Prefactor     .10000E-03    25.418        .90712E-02** at limit **
  15  norm          18.765        16.388        .23116E-02   -.32401E-04
  16  Prefactor     .10000E-03    1.4680        .33658E-01** at limit **
  17  Prefactor     .10000E-03    7.0802        .90712E-02** at limit **
  18  Prefactor     .10000E-03    2.7680        .90712E-02** at limit **
  19  Normalizat    1.0736        .18601        .64619E-01   -.79641E-03
  20  Prefactor     1.0076        .13365        .43700E-01   -.11675E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.90006
  Prefactor  = 0.0001
  Prefactor  = 6.18414
  Prefactor  = 3.02012
  norm       = 0.0001
  Prefactor  = 164.862
  Prefactor  = 42.3861
  Prefactor  = 0.0001
  norm       = 13.9738
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  norm       = 18.7654
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.07359
  Prefactor  = 1.00763
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.782     FROM HESSE     STATUS=OK           281 CALLS     2364 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6977        .10954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9001        7.6874        .12736E-03   -1.5079    
   4  Prefactor     .10000E-03    55.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1841        7.8433        .16145E-03   -1.5211    
   6  Prefactor     3.0201        5.2863        .23352E-03   -1.5360    
   7  norm          .10000E-03    1.2797        .14996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     164.86        97.653        .31413E-04   -1.3133    
   9  Prefactor     42.386        48.329        .61573E-04   -1.4405    
  10  Prefactor     .10000E-03    3.7043        .16115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.974        2.1883        .47393E-04   -1.4960    
  12  Prefactor     .10000E-03    12.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    264.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.765        16.386        .92462E-04   -1.4841    
  16  Prefactor     .10000E-03    3.4709        .20146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8671        .27986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0736        .21663        .28584E-03   -.90604    
  20  Prefactor     1.0076        .15605        .21996E-03   -.92476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13978e-09
Minuit parameter uncertainties:
  1  3.51906e-05
  2  0.000228327
  3  7.68812
  4  0.000223326
  5  7.84464
  6  5.28713
  7  1.95142e-05
  8  97.7494
  9  48.3741
  10  2.66118e-05
  11  2.18828
  12  1.44446e-06
  13  0.00261959
  14  0.000232009
  15  16.3903
  16  5.52039e-06
  17  0.000121135
  18  5.941e-05
  19  0.216809
  20  0.156116
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.620e-03  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.008e+00  1.561e-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.074e+00  2.168e-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: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534309/likelihoodResults_252288001_252547201_4FGL_J1532.0+3016_daily_bin50.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) = 7430.78153366
delta logL = -1.78481368494e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7430.78153364
delta logL = -1.78334812517e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9235       1.0000          .0000       10.000    
     3 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0076       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=   7429.753     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      264 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6530        38.578        .90713E-02    .92404E-03
   2  Index         3.3169        2.1484        .78714E-01    .32973E-03
   3  Normalizat    1.0102        .55480E-01    .66144E-01    .83472E-04
   4  Prefactor     1.0284        .40555E-01    .43697E-01    .80971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65304
  Index      = 3.31688
  Normalizat = 1.01022
  Prefactor  = 1.02835
 **********
 **   18 **HESSE 
 **********

 FCN=   7429.753     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6530        80.094        .10462E-03   -1.5382    
   2  Index         3.3169        3.4863        .39829E-02   -.34333    
   3  Normalizat    1.0102        .19691        .29262E-03   -.92689    
   4  Prefactor     1.0284        .14510        .21757E-03   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6656e-09
Minuit parameter uncertainties:
  1  29.1967
  2  3.92553
  3  0.197048
  4  0.145151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534309': 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) = 7429.75258901
delta logL = 1.02892680111

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  2.653e+00  2.920e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  3.317e+00  3.926e+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:  1.028e+00  1.452e-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.010e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 233.016 30.268
Photon Index (Free Index): 3.32 +/- 3.93
Photon Flux (Free Index): 7.65e-08 +/- 6.92e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.50e-05

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/534309/cmap_HighResolution_252288001_252547201_4FGL_J1532.0+3016_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='1.03e+00', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-09-12 03:39:36.064096', photon_index_error2='3.93', photon_index2='3.32', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='1.50e-05', EG='1.07', time_epoch_completed='1631443176.06', return_code='0', job_id='534309', GAL2='1.03', EG2='1.01', return_code2='102', photon_flux_error2='6.92e-08', ts2='2.12', photon_index='1.92' WHERE bin_id='50' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:39:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 534309: <4FGL_J1532.0+3016_daily_bin50> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin50> 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) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:25:26 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:26 2021
Terminated at Sun Sep 12 03:39:36 2021
Results reported at Sun Sep 12 03:39:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin50 233.016 30.2685 252288001 252547201 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 :                                   668.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

