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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin52
RA = 235.579, Dec = 18.0322
tmin = 252806401, tmax = 253065601
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='647824', job_status='RUN', time_executed='2021-09-12 10:05:18.032376', time_epoch_executed='1631466318.03' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647824

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647824/ft1_4FGL_J1542.3+1801_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647824/ft1_4FGL_J1542.3+1801_daily_bin52.fits outfile=/scratch/kocevski/647824/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin52.fits ra=235.579 dec=18.0322 rad=12.0 tmin=252806401.0 tmax=253065601.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.44
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647824/ft1_filtered_4FGL_J1542.3+1801_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/647824/ltcube_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.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/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits
.....................!
real 15.40
user 14.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647824/ft1_filtered_4FGL_J1542.3+1801_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/647824/ltcube_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.fits outfile=/scratch/kocevski/647824/expmap_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.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/647824/ltcube_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.fits
.....................!
real 198.17
user 192.95
sys 4.52

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/647824/ft1_filtered_4FGL_J1542.3+1801_daily_bin52.fits scfile=/scratch/kocevski/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits outfile=/scratch/kocevski/647824/cmap_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647824/ft1_filtered_4FGL_J1542.3+1801_daily_bin52.fits scfile=/scratch/kocevski/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits outfile=/scratch/kocevski/647824/cmap_HighResolution_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647824/ft1_filtered_4FGL_J1542.3+1801_daily_bin52.fits', '/scratch/kocevski/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits', expMap='/scratch/kocevski/647824/expmap_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.fits', expCube='/scratch/kocevski/647824/ltcube_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647824/Model_4FGL_J1542.3+1801_daily_bin52.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/647824/ft1_filtered_4FGL_J1542.3+1801_daily_bin52.fits
Spacecraft file(s): /scratch/kocevski/647824/ft2_4FGL_J1542.3+1801_daily_bin52.fits
Exposure map: /scratch/kocevski/647824/expmap_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.fits
Exposure cube: /scratch/kocevski/647824/ltcube_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647824/Model_4FGL_J1542.3+1801_daily_bin52.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) = 8034.19070649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8881       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5947       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.881       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    142.42       1.0000         .10000E-03   10000.    
    14 'norm      '    21.502       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5682       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42645       1.0000         .10000E-03   10000.    
    17 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2562       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0435       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95235       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=   8034.178     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2029 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8744        28.587        .76176E-06   -.11552E-04
   2  Prefactor     .10000E-03    18.440       -.26854E-06** at limit **
   3  Prefactor     .10000E-03    6.2008        .20211E-06** at limit **
   4  norm          5.5942        .58663        .12496E-08   -.55188E-04
   5  norm          .10000E-03    20.610        .21687E-06** at limit **
   6  Prefactor     47.692        38.829       -.34684E-06   -.17526E-03
   7  Prefactor     .10000E-03    2.5702        .12516E-06** at limit **
   8  Prefactor     .10000E-03    8.4591       -.34931E-07** at limit **
   9  Prefactor     .10000E-03    .65520        .11752E-06** at limit **
  10  Prefactor     44.860        32.234       -.32596E-06   -.95153E-04
  11  norm          2.8459        2.3461        .98190E-06   -.19562E-03
  12  Prefactor     35.203        29.174       -.35301E-06   -.39305E-04
  13  Prefactor     142.33        86.960       -.30120E-06   -.16122E-03
  14  norm          21.494        9.8424       -.46205E-07    .93122E-05
  15  norm          4.5678        1.8717        .13268E-07   -.17641E-04
  16  Prefactor     .15239        7.8625       -.11671E-05    .23637E-03
  17  norm          .10000E-03    15.525        .65036E-06** at limit **
  18  Prefactor     5.2656        11.549        .65255E-05   -.54742E-04
  19  Normalizat    1.0445        .22640       -.11644E-08    .45807E-04
  20  Prefactor     .95214        .12172       -.11767E-05    .20096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.87444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.59416
  norm       = 0.0001
  Prefactor  = 47.6921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.8597
  norm       = 2.84587
  Prefactor  = 35.2028
  Prefactor  = 142.334
  norm       = 21.4943
  norm       = 4.56785
  Prefactor  = 0.15239
  norm       = 0.0001
  Prefactor  = 5.26565
  Normalizat = 1.04451
  Prefactor  = 0.952143
 **********
 **   18 **HESSE 
 **********

 FCN=   8034.178     FROM HESSE     STATUS=OK           295 CALLS     2324 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8744        28.612        .23914E-03   -1.5369    
   2  Prefactor     .10000E-03    18.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5942        .58802        .21442E-04   -1.5235    
   5  norm          .10000E-03    20.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.692        38.871        .58040E-04   -1.4326    
   7  Prefactor     .10000E-03    2.5758        .14034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .65832        .70850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.860        32.268        .59846E-04   -1.4367    
  11  norm          2.8459        2.3404        .59927E-03   -1.5371    
  12  Prefactor     35.203        29.167        .67536E-04   -1.4521    
  13  Prefactor     142.33        86.931        .16880E-03   -1.3316    
  14  norm          21.494        9.8436        .86379E-04   -1.4780    
  15  norm          4.5678        1.8719        .75865E-04   -1.5280    
  16  Prefactor     .15239        15.777        .70325E-01   -1.5630    
  17  norm          .10000E-03    16.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2656        11.614        .87660E-03   -1.5249    
  19  Normalizat    1.0445        .27186        .35269E-03   -.91554    
  20  Prefactor     .95214        .14498        .20386E-03   -.94342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89692e-09
Minuit parameter uncertainties:
  1  18.1485
  2  0.000120554
  3  8.07248e-06
  4  0.588021
  5  8.73493e-05
  6  38.8915
  7  1.36022e-06
  8  4.85348e-06
  9  5.24702e-07
  10  32.2801
  11  2.34048
  12  29.1784
  13  87.0095
  14  9.84432
  15  1.87195
  16  3.10098
  17  6.51303e-05
  18  11.6191
  19  0.272222
  20  0.145038
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  4.486e+01  3.228e+01  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.521e-01  1.450e-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:  1.045e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.10
Ra Dec: 235.579 18.032
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 4.66e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.32e-05

TS (Fixed Index): 3.10
Ra Dec: 235.579 18.032
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647824/likelihoodResults_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.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) = 8034.17564979
delta logL = 0.00276649460284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8034.1736064
delta logL = 0.00480989268544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.383       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5865       1.0000          .0000       10.000    
     3 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95351       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.

 FCN=   8034.174     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.383        738.38        .15394E-02    .82188E-04
   2  Index         2.5866        6.2896        .15107        .11778E-03
   3  Normalizat    1.0408        .10965        .79797E-01   -.16664E-04
   4  Prefactor     .95354        .50096E-01    .45683E-01   -.12451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3831
  Index      = 2.58656
  Normalizat = 1.04081
  Prefactor  = 0.95354
 **********
 **   18 **HESSE 
 **********

 FCN=   8034.174     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.383        42.857        .61577E-04   -1.4405    
   2  Index         2.5866        .70890        .79667E-02   -.50372    
   3  Normalizat    1.0408        .26328        .35323E-03   -.91675    
   4  Prefactor     .95354        .14529        .20373E-03   -.94295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70182e-09
Minuit parameter uncertainties:
  1  42.8883
  2  0.712035
  3  0.263608
  4  0.145349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647824': 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) = 8034.17360637
delta logL = 0.00480991729728

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  4.238e+01  4.289e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.587e+00  7.120e-01  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.535e-01  1.453e-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:  1.041e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 235.579 18.032
Photon Index (Free Index): 2.59 +/- 0.71
Photon Flux (Free Index): 6.74e-08 +/- 5.32e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.40e-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/647824/cmap_HighResolution_252806401_253065601_4FGL_J1542.3+1801_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='1.79e-05', photon_flux_error='4.66e-08', dlogl='4.81e-03', energy_flux='1.84e-05', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-12 10:16:12.865935', photon_index_error2='0.71', photon_index2='2.59', ts='3.10', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.40e-05', EG='1.04', time_epoch_completed='1631466972.87', return_code='0', job_id='647824', GAL2='0.95', EG2='1.04', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.32e-08', ts2='3.09', photon_index='2.52' WHERE bin_id='52' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:16:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 647824: <4FGL_J1542.3+1801_daily_bin52> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin52> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 10:00:34 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:02:25 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:02:25 2021
Terminated at Sun Sep 12 10:16:13 2021
Results reported at Sun Sep 12 10:16:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin52 235.579 18.0322 252806401 253065601 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 :                                   652.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            939 sec.

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

