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


Performing analysis on: 4FGL_J1532.0+3016_daily_bin1414
RA = 233.016, Dec = 30.2685
tmin = 605836801, tmax = 606096001
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='540576', job_status='RUN', time_executed='2021-09-12 03:46:49.012397', time_epoch_executed='1631443609.01' WHERE source_name='4FGL J1532.0+3016' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540576/ft1_4FGL_J1532.0+3016_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540576/ft2_4FGL_J1532.0+3016_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540576/ft1_4FGL_J1532.0+3016_daily_bin1414.fits outfile=/scratch/kocevski/540576/ft1_filteredMKT_4FGL_J1532.0+3016_daily_bin1414.fits ra=233.016 dec=30.2685 rad=12.0 tmin=605836801.0 tmax=606096001.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.61
user 3.36
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540576/ft1_filtered_4FGL_J1532.0+3016_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/540576/ft2_4FGL_J1532.0+3016_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/540576/ltcube_605836801_606096001_4FGL_J1532.0+3016_daily_bin1414.fits outfile=/scratch/kocevski/540576/expmap_605836801_606096001_4FGL_J1532.0+3016_daily_bin1414.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/540576/ltcube_605836801_606096001_4FGL_J1532.0+3016_daily_bin1414.fits
.....................!
real 191.57
user 186.72
sys 4.48

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/540576/ft1_filtered_4FGL_J1532.0+3016_daily_bin1414.fits scfile=/scratch/kocevski/540576/ft2_4FGL_J1532.0+3016_daily_bin1414.fits outfile=/scratch/kocevski/540576/cmap_605836801_606096001_4FGL_J1532.0+3016_daily_bin1414.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540576/ft1_filtered_4FGL_J1532.0+3016_daily_bin1414.fits scfile=/scratch/kocevski/540576/ft2_4FGL_J1532.0+3016_daily_bin1414.fits outfile=/scratch/kocevski/540576/cmap_HighResolution_605836801_606096001_4FGL_J1532.0+3016_daily_bin1414.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.767       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5751       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2783       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 '    1.7545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3259       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .68269       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=   6631.333     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2021 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2276        3.1697        .64547E-06    .30531E-03
   2  Prefactor     59.763        36.024       -.48959E-06   -.68891E-04
   3  norm          4.9410        4.8747       -.14183E-05    .53296E-03
   4  Prefactor     .10000E-03    4.0176       -.32045E-07** at limit **
   5  Prefactor     6.8145        5.3620        .14164E-06   -.42922E-04
   6  Prefactor     .10000E-03    5.6810        .34845E-06** at limit **
   7  norm          .10000E-03    .67701       -.13515E-07** at limit **
   8  Prefactor     .10000E-03    17.634       -.20460E-05** at limit **
   9  Prefactor     66.547        49.760       -.34277E-06   -.31170E-04
  10  Prefactor     .10000E-03    3.0148        .49931E-07** at limit **
  11  norm          1.5750        .94189        .28556E-08   -.24335E-05
  12  Prefactor     .10000E-03    3.9933       -.65764E-07** at limit **
  13  Prefactor     6.2781        19.559        .19488E-07   -.47592E-05
  14  Prefactor     .10000E-03    13.833        .26256E-05** at limit **
  15  norm          .10000E-03    8.6915       -.71631E-06** at limit **
  16  Prefactor     1.7545        2.5941        .25271E-06   -.12602E-03
  17  Prefactor     20.276        12.151       -.32713E-07   -.17955E-04
  18  Prefactor     .10000E-03    2.5958        .15556E-07** at limit **
  19  Normalizat    1.3260        .16947        .10271E-06   -.42187E-04
  20  Prefactor     .68267        .12752       -.97037E-07   -.11190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22758
  Prefactor  = 59.7632
  norm       = 4.94099
  Prefactor  = 0.0001
  Prefactor  = 6.81452
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 66.5468
  Prefactor  = 0.0001
  norm       = 1.57503
  Prefactor  = 0.0001
  Prefactor  = 6.2781
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.75448
  Prefactor  = 20.2764
  Prefactor  = 0.0001
  Normalizat = 1.32598
  Prefactor  = 0.682667
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.333     FROM HESSE     STATUS=OK           293 CALLS     2314 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2276        2.6728        .23626E-02   -1.5486    
   2  Prefactor     59.763        36.255        .51898E-04   -1.4160    
   3  norm          4.9410        4.9419        .88337E-03   -1.5263    
   4  Prefactor     .10000E-03    4.0241        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8145        5.3016        .76848E-03   -1.5186    
   6  Prefactor     .10000E-03    5.7284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0549        .12787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     66.547        49.830        .49198E-04   -1.4075    
  10  Prefactor     .10000E-03    3.0560        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5750        .93886        .58470E-04   -1.5457    
  12  Prefactor     .10000E-03    4.0199        .15870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2781        19.538        .16020E-03   -1.5207    
  14  Prefactor     .10000E-03    14.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.8601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7545        2.5820        .15052E-03   -1.5443    
  17  Prefactor     20.276        12.165        .88948E-04   -1.4807    
  18  Prefactor     .10000E-03    2.6788        .25596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3260        .19547        .22771E-03   -.82794    
  20  Prefactor     .68267        .14745        .23245E-03   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34646e-10
Minuit parameter uncertainties:
  1  2.67301
  2  36.2682
  3  4.94235
  4  5.81906e-07
  5  5.302
  6  2.22787e-05
  7  1.52236e-06
  8  0.0002607
  9  49.8611
  10  1.69391e-06
  11  0.938864
  12  5.59825e-06
  13  19.5575
  14  0.000271856
  15  7.67449e-05
  16  2.58217
  17  12.1662
  18  1.82568e-06
  19  0.195583
  20  0.147534
Done.

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

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  6.278e+00  1.956e+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:  6.827e-01  1.475e-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.326e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/540576/likelihoodResults_605836801_606096001_4FGL_J1532.0+3016_daily_bin1414.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) = 6631.3278658
delta logL = 0.00465629531209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6631.32630759
delta logL = 0.00621450214749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1426       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0798       1.0000          .0000       10.000    
     3 'Normalizat'    1.3252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68297       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=   6631.326     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      255 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1442        24.868        .17728E-03    .16795E-03
   2  Index         2.0796        1.6159        .10971E-01    .82444E-04
   3  Normalizat    1.3252        .18928        .22777E-03    .23536E-03
   4  Prefactor     .68297        .14422        .11620E-02    .20871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.14425
  Index      = 2.07955
  Normalizat = 1.32517
  Prefactor  = 0.682967
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.326     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1442        19.785        .70913E-05   -1.5254    
   2  Index         2.0796        1.4250        .43882E-03   -.62376    
   3  Normalizat    1.3252        .18960        .45554E-04   -.82818    
   4  Prefactor     .68297        .14446        .46480E-04   -1.0420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65971e-10
Minuit parameter uncertainties:
  1  19.8105
  2  1.45604
  3  0.189703
  4  0.144541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540576': 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) = 6631.32630757
delta logL = 0.00621452915129

Extracting fit parameters...

4FGL J1532.0+3016
   Spectrum: PowerLaw
268    Prefactor:  5.144e+00  1.981e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.080e+00  1.456e+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:  6.830e-01  1.445e-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.325e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 233.016 30.268

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/540576/cmap_HighResolution_605836801_606096001_4FGL_J1532.0+3016_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-12 03:57:29.256006', job_id='540576', GAL2='0.68', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631444249.26', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='6.21e-03', ts2='0.14', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1414' AND source_name='4FGL J1532.0+3016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:57:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 540576: <4FGL_J1532.0+3016_daily_bin1414> in cluster <slac> Done

Job <4FGL_J1532.0+3016_daily_bin1414> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 03:45:29 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:46:37 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:46:37 2021
Terminated at Sun Sep 12 03:57:30 2021
Results reported at Sun Sep 12 03:57:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1532.0+3016_daily_bin1414 233.016 30.2685 605836801 606096001 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 :                                   623.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            721 sec.

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

