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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin58
RA = 235.579, Dec = 18.0322
tmin = 254361601, tmax = 254620801
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='647834', job_status='RUN', time_executed='2021-09-12 10:02:41.844402', time_epoch_executed='1631466161.84' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647834/ft1_4FGL_J1542.3+1801_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647834/ft2_4FGL_J1542.3+1801_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647834/ft1_4FGL_J1542.3+1801_daily_bin58.fits outfile=/scratch/kocevski/647834/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin58.fits ra=235.579 dec=18.0322 rad=12.0 tmin=254361601.0 tmax=254620801.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.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647834/ft2_4FGL_J1542.3+1801_daily_bin58.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/647834/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin58.fits evtable="EVENTS" outfile="/scratch/kocevski/647834/ft1_filtered_4FGL_J1542.3+1801_daily_bin58.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647834/ft1_filtered_4FGL_J1542.3+1801_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/647834/ft2_4FGL_J1542.3+1801_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/647834/ltcube_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.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/647834/ft2_4FGL_J1542.3+1801_daily_bin58.fits
.....................!
real 14.94
user 14.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647834/ft1_filtered_4FGL_J1542.3+1801_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/647834/ft2_4FGL_J1542.3+1801_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/647834/ltcube_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.fits outfile=/scratch/kocevski/647834/expmap_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.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/647834/ltcube_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.fits
.....................!
real 190.48
user 185.39
sys 4.46

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/647834/ft1_filtered_4FGL_J1542.3+1801_daily_bin58.fits scfile=/scratch/kocevski/647834/ft2_4FGL_J1542.3+1801_daily_bin58.fits outfile=/scratch/kocevski/647834/cmap_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647834/ft1_filtered_4FGL_J1542.3+1801_daily_bin58.fits scfile=/scratch/kocevski/647834/ft2_4FGL_J1542.3+1801_daily_bin58.fits outfile=/scratch/kocevski/647834/cmap_HighResolution_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5999       1.0000         .10000E-03   10000.    
     4 'norm      '    5.5232       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1035       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.098       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6481       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2749       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.540       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0895       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=   12049.33     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2085 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1345        45.147        .46913E-05   -.28056E-04
   2  Prefactor     .10001E-03    27.387       -.34827E-05** at limit **
   3  Prefactor     1.6008        8.7070        .11767E-04   -.11862E-03
   4  norm          5.5233        .51923        .60091E-08   -.12845E-02
   5  norm          .10000E-03    12.078       -.45551E-06** at limit **
   6  Prefactor     51.498        38.609       -.96981E-06   -.64487E-04
   7  Prefactor     .10000E-03    10.635        .22968E-06** at limit **
   8  Prefactor     .10000E-03    14.143        .32534E-06** at limit **
   9  Prefactor     1.1032        2.8050        .72745E-06    .25217E-04
  10  Prefactor     .10000E-03    20.094        .67782E-06** at limit **
  11  norm          .10000E-03    .57065        .21189E-07** at limit **
  12  Prefactor     19.003        23.682        .11756E-06   -.49079E-04
  13  Prefactor     15.098        20.755        .12462E-06   -.50341E-05
  14  norm          1.6475        5.1594        .84683E-06    .86000E-05
  15  norm          3.2749        1.2231       -.34665E-08   -.12085E-03
  16  Prefactor     .10000E-03    2.9679        .39188E-07** at limit **
  17  norm          18.540        10.940        .19466E-06   -.28718E-04
  18  Prefactor     .10000E-03    6.3428        .92885E-07** at limit **
  19  Normalizat    1.0975        .19788       -.12703E-05   -.37911E-03
  20  Prefactor     1.0897        .10570       -.45087E-06   -.79542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13446
  Prefactor  = 0.00010001
  Prefactor  = 1.60085
  norm       = 5.5233
  norm       = 0.0001
  Prefactor  = 51.4983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10323
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.0031
  Prefactor  = 15.0981
  norm       = 1.64748
  norm       = 3.2749
  Prefactor  = 0.0001
  norm       = 18.54
  Prefactor  = 0.0001
  Normalizat = 1.0975
  Prefactor  = 1.08969
 **********
 **   18 **HESSE 
 **********

 FCN=   12049.33     FROM HESSE     STATUS=OK           291 CALLS     2376 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1345        45.390        .22780E-03   -1.5354    
   2  Prefactor     .10001E-03    27.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6008        8.7121        .16759E-02   -1.5455    
   4  norm          5.5233        .51986        .23396E-04   -1.5238    
   5  norm          .10000E-03    12.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.498        38.708        .55893E-04   -1.4271    
   7  Prefactor     .10000E-03    10.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1032        2.8119        .27483E-03   -1.5498    
  10  Prefactor     .10000E-03    20.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .57683        .80940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.003        23.676        .91883E-04   -1.4836    
  13  Prefactor     15.098        20.753        .10308E-03   -1.4931    
  14  norm          1.6475        5.1390        .32893E-03   -1.5451    
  15  norm          3.2749        1.2230        .71868E-04   -1.5346    
  16  Prefactor     .10000E-03    2.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.540        10.937        .93018E-04   -1.4847    
  18  Prefactor     .10000E-03    6.3930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0975        .23472        .36353E-03   -.89832    
  20  Prefactor     1.0897        .12628        .20073E-03   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37724e-10
Minuit parameter uncertainties:
  1  23.8772
  2  0.0010613
  3  7.47052
  4  0.519859
  5  4.06211e-06
  6  38.7272
  7  7.66293e-07
  8  3.56903e-05
  9  2.81228
  10  8.97153e-05
  11  1.28269e-06
  12  23.6873
  13  20.7627
  14  5.14035
  15  1.22306
  16  6.08076e-06
  17  10.9386
  18  1.91544e-05
  19  0.234947
  20  0.126315
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  8.972e-05  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:  1.090e+00  1.263e-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.098e+00  2.349e-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: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647834/likelihoodResults_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.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) = 12049.3302284
delta logL = -0.000236137142565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12049.3299858
delta logL = 6.42740633339e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8832       1.0000          .0000       10.000    
     3 'Normalizat'    1.0975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0897       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=   12049.32     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      303 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86630E-01    .76337        .36702E-01    .14140E-02
   2  Index         4.6673        .76264        .50000        .22588E-04
   3  Normalizat    1.0908        .73283E-02    .82338E-01    .13739E-03
   4  Prefactor     1.0918        .40522E-02    .37992E-01    .18113E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0866301
  Index      = 4.66726
  Normalizat = 1.09078
  Prefactor  = 1.09184
 **********
 **   18 **HESSE 
 **********

 FCN=   12049.32     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86630E-01    340.87        .12083E-02   -1.5649    
   2  Index         4.6673        7.6057        .10612E-01   -.66598E-01
   3  Normalizat    1.0908        .12538        .36454E-03   -.90048    
   4  Prefactor     1.0918        .59853E-01    .20056E-03   -.89728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.37841e-06
Minuit parameter uncertainties:
  1  10.9246
  2  55.625
  3  0.12541
  4  0.0598571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647834': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12049.3247152
delta logL = 0.00527707576657

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  8.663e-02  1.092e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  4.667e+00  5.563e+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:  1.092e+00  5.986e-02  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.091e+00  1.254e-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/647834/cmap_HighResolution_254361601_254620801_4FGL_J1542.3+1801_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-12 10:16:19.927705', job_id='647834', GAL2='1.09', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1631466979.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.28e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='58' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:16:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 647834: <4FGL_J1542.3+1801_daily_bin58> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin58 235.579 18.0322 254361601 254620801 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 :                                   816.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            945 sec.

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

