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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin15
RA = 235.579, Dec = 18.0322
tmin = 243216001, tmax = 243475201
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='647766', job_status='RUN', time_executed='2021-09-12 10:05:39.485403', time_epoch_executed='1631466339.49' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647766

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647766/ft1_4FGL_J1542.3+1801_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647766/ft1_4FGL_J1542.3+1801_daily_bin15.fits outfile=/scratch/kocevski/647766/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin15.fits ra=235.579 dec=18.0322 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.25
user 0.99
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.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/647766/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.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.52
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/647766/ltcube_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.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/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits
.....................!
real 15.76
user 13.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/647766/ltcube_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.fits outfile=/scratch/kocevski/647766/expmap_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.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/647766/ltcube_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.fits
.....................!
real 165.94
user 152.29
sys 4.57

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1542.3+1801 @ 235.579 18.0322

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits scfile=/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits outfile=/scratch/kocevski/647766/cmap_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.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=235.579 yref=18.0322 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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits scfile=/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits outfile=/scratch/kocevski/647766/cmap_HighResolution_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.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=235.579 yref=18.0322 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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647766/Model_4FGL_J1542.3+1801_daily_bin15.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/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits.....................!
real 51.28
user 49.81
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits', '/scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits', expMap='/scratch/kocevski/647766/expmap_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.fits', expCube='/scratch/kocevski/647766/ltcube_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647766/Model_4FGL_J1542.3+1801_daily_bin15.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1542.3+1801'

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  4.061e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/647766/ft1_filtered_4FGL_J1542.3+1801_daily_bin15.fits
Spacecraft file(s): /scratch/kocevski/647766/ft2_4FGL_J1542.3+1801_daily_bin15.fits
Exposure map: /scratch/kocevski/647766/expmap_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.fits
Exposure cube: /scratch/kocevski/647766/ltcube_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647766/Model_4FGL_J1542.3+1801_daily_bin15.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) = 8264.35130474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.846       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .45334       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5619       1.0000         .10000E-03   10000.    
     5 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48919E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.501       1.0000         .10000E-03   10000.    
    14 'norm      '    57.850       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2898       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8316       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9084       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82680       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96319       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8264.341     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2327 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.908        .86324E-06** at limit **
   2  Prefactor     28.858        32.155       -.24184E-04   -.72216E-05
   3  Prefactor     .45384        .76782        .14747E-06   -.16396E-02
   4  norm          1.5619        .31870       -.10815E-07    .22374E-03
   5  norm          .10000E-03    12.036        .90248E-06** at limit **
   6  Prefactor     .10000E-03    32.937        .53507E-06** at limit **
   7  Prefactor     11.265        9.1143       -.15892E-05    .80853E-05
   8  Prefactor     36.096        33.937        .81787E-05    .11173E-03
   9  Prefactor     1.8974        1.9824        .38528E-06    .45180E-04
  10  Prefactor     .14119E-03    19.874       -.47465E-05** at limit **
  11  norm          .10000E-03    1.0944        .44676E-07** at limit **
  12  Prefactor     .10000E-03    27.299        .17505E-05** at limit **
  13  Prefactor     49.520        41.829       -.12349E-04    .61224E-06
  14  norm          57.848        12.948       -.32540E-07    .20864E-03
  15  norm          5.2900        1.9108        .82088E-07    .61009E-04
  16  Prefactor     .10000E-03    3.2868        .84753E-06** at limit **
  17  norm          5.8339        12.216        .42812E-06   -.66097E-04
  18  Prefactor     3.9125        12.734        .25827E-06   -.86221E-04
  19  Normalizat    .82667        .20740        .77884E-06    .25235E-03
  20  Prefactor     .96314        .10982       -.85916E-07    .45060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 28.8583
  Prefactor  = 0.453844
  norm       = 1.56193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.265
  Prefactor  = 36.0963
  Prefactor  = 1.89741
  Prefactor  = 0.000141189
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.5195
  norm       = 57.8483
  norm       = 5.29003
  Prefactor  = 0.0001
  norm       = 5.83392
  Prefactor  = 3.91253
  Normalizat = 0.826675
  Prefactor  = 0.963142
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.341     FROM HESSE     STATUS=OK           301 CALLS     2628 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.858        32.173        .74595E-04   -1.4633    
   3  Prefactor     .45384        7.9138        .22158E-02   -1.5573    
   4  norm          1.5619        .31929        .22335E-04   -1.5458    
   5  norm          .10000E-03    12.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.265        9.1436        .11937E-03   -1.5037    
   8  Prefactor     36.096        34.123        .66700E-04   -1.4506    
   9  Prefactor     1.8974        1.9696        .12622E-03   -1.5432    
  10  Prefactor     .14119E-03    22.148        .11759       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1107        .92805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.520        41.830        .28499E-03   -1.4299    
  14  norm          57.848        12.942        .52745E-04   -1.4185    
  15  norm          5.2900        1.9110        .72569E-04   -1.5248    
  16  Prefactor     .10000E-03    3.2933        .16094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8339        12.252        .83153E-03   -1.5225    
  18  Prefactor     3.9125        12.790        .10204E-02   -1.5312    
  19  Normalizat    .82667        .24621        .35395E-03   -.99087    
  20  Prefactor     .96314        .13159        .18417E-03   -.93968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48211e-09
Minuit parameter uncertainties:
  1  0.000179275
  2  32.1927
  3  3.79048
  4  0.319293
  5  8.17745e-06
  6  2.10638e-05
  7  9.14477
  8  34.1417
  9  1.96969
  10  0.0604287
  11  7.22478e-07
  12  1.21966e-05
  13  41.855
  14  12.9426
  15  1.91106
  16  1.67655e-06
  17  12.2573
  18  12.7991
  19  0.246546
  20  0.131637
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.412e-04  6.043e-02  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.631e-01  1.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.267e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 235.579 18.032
Photon Flux Upper Limit: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647766/likelihoodResults_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.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) = 8264.34112821
delta logL = -6.45362888463e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8264.3411282
delta logL = -6.44944157102e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5223       1.0000          .0000       10.000    
     3 'Normalizat'    .82667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8264.274     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      368 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8275        24.023        .18142E-02    .99557E-04
   2  Index         1.7515        1.2153        .20310E-01   -.83257E-05
   3  Normalizat    .82925        .23004        .35344E-03    .28949E-05
   4  Prefactor     .95944        .12958        .18447E-03    .73954E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.82746
  Index      = 1.75153
  Normalizat = 0.82925
  Prefactor  = 0.959438
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.274     FROM HESSE     STATUS=OK            27 CALLS      395 TOTAL
                     EDM=   .42E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8275        24.395        .36285E-03   -1.5148    
   2  Index         1.7515        1.2355        .81241E-03   -.70718    
   3  Normalizat    .82925        .23022        .14138E-04   -.98993    
   4  Prefactor     .95944        .12967        .73789E-05   -.94094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1582e-14
Minuit parameter uncertainties:
  1  24.4261
  2  1.25836
  3  0.230488
  4  0.129716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647766': 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) = 8264.27368562
delta logL = 0.067436134761

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  7.827e+00  2.443e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  1.752e+00  1.258e+00  0.000e+00  1.000e+01 (-1.000e+00)
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.594e-01  1.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  8.293e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.579 18.032

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/647766/cmap_HighResolution_243216001_243475201_4FGL_J1542.3+1801_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-12 10:15:30.934885', job_id='647766', GAL2='0.96', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631466930.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.74e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='15' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:15:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 647766: <4FGL_J1542.3+1801_daily_bin15> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin15> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 10:00:29 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:01:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 10:01:56 2021
Terminated at Sun Sep 12 10:15:31 2021
Results reported at Sun Sep 12 10:15:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin15 235.579 18.0322 243216001 243475201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1542.3+1801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   560.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            902 sec.

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

