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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1328
RA = 233.016, Dec = 30.2685
tmin = 583545601, tmax = 583804801
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='540449', job_status='RUN', time_executed='2021-09-12 03:47:47.017085', time_epoch_executed='1631443667.02' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540449/ft1_4FGL_J1532.0+3016_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540449/ft2_4FGL_J1532.0+3016_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540449/ft1_4FGL_J1532.0+3016_daily_bin1328.fits outfile=/scratch/kocevski/540449/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1328.fits ra=233.016 dec=30.2685 rad=12.0 tmin=583545601.0 tmax=583804801.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.48
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540449/ft1_filtered_4FGL_J1532.0+3016_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/540449/ft2_4FGL_J1532.0+3016_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/540449/ltcube_583545601_583804801_4FGL_J1532.0+3016_daily_bin1328.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/540449/ft2_4FGL_J1532.0+3016_daily_bin1328.fits
.....................!
real 13.08
user 12.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540449/ft1_filtered_4FGL_J1532.0+3016_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/540449/ft2_4FGL_J1532.0+3016_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/540449/ltcube_583545601_583804801_4FGL_J1532.0+3016_daily_bin1328.fits outfile=/scratch/kocevski/540449/expmap_583545601_583804801_4FGL_J1532.0+3016_daily_bin1328.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/540449/ltcube_583545601_583804801_4FGL_J1532.0+3016_daily_bin1328.fits
.....................!
real 192.54
user 187.29
sys 4.80

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

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9532       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.626       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7592       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1977       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9684       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5903       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17453E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1664       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92855       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97546       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=   6144.622     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2394 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9529        5.3445        .29115E-07    .12288E-04
   2  Prefactor     77.623        43.075       -.15364E-05   -.10737E-03
   3  norm          6.7592        6.1891       -.14888E-06    .45007E-03
   4  Prefactor     4.1975        9.4327        .22722E-06   -.40519E-04
   5  Prefactor     .10000E-03    1.7644        .21795E-07** at limit **
   6  Prefactor     4.9685        6.7483        .12276E-05   -.14797E-02
   7  norm          .10000E-03    .41023        .10042E-07** at limit **
   8  Prefactor     30.955        33.083        .12960E-05    .58969E-04
   9  Prefactor     4.5860        95.125       -.93579E-05   -.43540E-04
  10  Prefactor     .10000E-03    4.5880        .69103E-08** at limit **
  11  norm          1.9823        1.0952       -.78035E-07    .33802E-03
  12  Prefactor     .10001E-03    5.0156       -.34181E-06** at limit **
  13  Prefactor     4.3488        24.172        .15284E-04    .24547E-03
  14  Prefactor     .10000E-03    9.6141       -.31400E-06** at limit **
  15  norm          .10000E-03    7.7860        .21206E-06** at limit **
  16  Prefactor     4.2272        2.8122       -.14527E-06   -.11481E-03
  17  Prefactor     .10000E-03    3.7385        .40904E-07** at limit **
  18  Prefactor     5.1659        3.6849        .81718E-06   -.32213E-02
  19  Normalizat    .92856        .17896       -.33921E-07    .97531E-05
  20  Prefactor     .97545        .13436       -.36265E-06    .64950E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.95292
  Prefactor  = 77.6226
  norm       = 6.75917
  Prefactor  = 4.1975
  Prefactor  = 0.0001
  Prefactor  = 4.96849
  norm       = 0.0001
  Prefactor  = 30.9549
  Prefactor  = 4.586
  Prefactor  = 0.0001
  norm       = 1.98227
  Prefactor  = 0.000100005
  Prefactor  = 4.34882
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.22722
  Prefactor  = 0.0001
  Prefactor  = 5.16593
  Normalizat = 0.928562
  Prefactor  = 0.975452
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.622     FROM HESSE     STATUS=OK           295 CALLS     2689 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9529        5.3450        .14218E-03   -1.5144    
   2  Prefactor     77.623        43.564        .45578E-04   -1.3944    
   3  norm          6.7592        6.2159        .77167E-03   -1.5188    
   4  Prefactor     4.1975        9.4359        .19670E-03   -1.5298    
   5  Prefactor     .10000E-03    1.7670        .10168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9685        7.6578        .90213E-03   -1.5262    
   7  norm          .10000E-03    .41929        .48985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.955        33.100        .72017E-04   -1.4595    
   9  Prefactor     4.5860        96.116        .18787E-03   -1.5280    
  10  Prefactor     .10000E-03    4.6092        .16394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9823        1.0330        .55155E-04   -1.5426    
  12  Prefactor     .10001E-03    17.689        .31995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3488        25.276        .19336E-03   -1.5291    
  14  Prefactor     .10000E-03    9.6349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.8142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2272        2.8125        .10177E-03   -1.5297    
  17  Prefactor     .10000E-03    3.7498        .14801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1659        4.6624        .74139E-03   -1.5253    
  19  Normalizat    .92856        .20996        .26207E-03   -.95464    
  20  Prefactor     .97545        .15588        .20135E-03   -.93552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24458e-09
Minuit parameter uncertainties:
  1  5.34531
  2  43.5817
  3  6.21653
  4  9.43928
  5  9.01229e-08
  6  7.65932
  7  5.06366e-07
  8  33.1197
  9  42.0666
  10  2.00848e-07
  11  1.03297
  12  0.000614165
  13  20.9819
  14  1.93887e-05
  15  5.45549e-06
  16  2.81262
  17  9.9086e-07
  18  4.66269
  19  0.210147
  20  0.155956
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  4.349e+00  2.098e+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.755e-01  1.560e-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.286e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/540449/likelihoodResults_583545601_583804801_4FGL_J1532.0+3016_daily_bin1328.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) = 6144.58178838
delta logL = 0.0399546438575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6144.57582818
delta logL = 0.0459148442706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6802       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5669       1.0000          .0000       10.000    
     3 'Normalizat'    .92270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97702       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6144.576     FROM MIGRAD    STATUS=FAILED       100 CALLS      301 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6809        1140.4        .24890E-03    .19608E-03
   2  Index         2.5663        8.7167        .14505E-01    .71172E-04
   3  Normalizat    .92285        .23778        .26276E-03    .12945E-03
   4  Prefactor     .97693        .16374        .20119E-03    .18367E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6144.576     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      398 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6809        1140.4        .39695E-03    .19608E-03
   2  Index         2.5663        8.7167        .24417E-02    .71172E-04
   3  Normalizat    .92285        .23778        .95145E-04    .12945E-03
   4  Prefactor     .97693        .16374        .10722E-03    .18367E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6144.576     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      428 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6811        17.982        .99561E-05    .25989E-03
   2  Index         2.5663        2.1717        .58021E-03    .42578E-04
   3  Normalizat    .92285        .19527        .10511E-04    .13542E-03
   4  Prefactor     .97693        .15292        .40238E-04    .19015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68108
  Index      = 2.56625
  Normalizat = 0.922852
  Prefactor  = 0.976931
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.576     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6811        17.384        .19912E-05   -1.5380    
   2  Index         2.5663        2.1380        .23208E-04   -.50836    
   3  Normalizat    .92285        .19536        .21021E-05   -.95662    
   4  Prefactor     .97693        .15299        .80476E-05   -.93502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73988e-10
Minuit parameter uncertainties:
  1  13.6594
  2  2.23416
  3  0.195513
  4  0.15306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540449': 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) = 6144.57582783
delta logL = 0.0459151952018

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  2.681e+00  1.366e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.566e+00  2.234e+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.769e-01  1.531e-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.229e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/540449/cmap_HighResolution_583545601_583804801_4FGL_J1532.0+3016_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-12 03:59:00.377936', job_id='540449', GAL2='0.98', fit_tolerance='1e-08', EG2='0.92', EG='0.93', time_epoch_completed='1631444340.38', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.59e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1328' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:59:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 540449: <4FGL_J1532.0+3016_daily_bin1328> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin1328> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 03:45:20 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:45:50 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:45:50 2021
Terminated at Sun Sep 12 03:59:01 2021
Results reported at Sun Sep 12 03:59:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1328 233.016 30.2685 583545601 583804801 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 :                                   645.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            821 sec.

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

