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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin54
RA = 235.579, Dec = 18.0322
tmin = 253324801, tmax = 253584001
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='647828', job_status='RUN', time_executed='2021-09-12 10:05:24.078940', time_epoch_executed='1631466324.08' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647828/ft1_4FGL_J1542.3+1801_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647828/ft2_4FGL_J1542.3+1801_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647828/ft1_4FGL_J1542.3+1801_daily_bin54.fits outfile=/scratch/kocevski/647828/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin54.fits ra=235.579 dec=18.0322 rad=12.0 tmin=253324801.0 tmax=253584001.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/647828/ft2_4FGL_J1542.3+1801_daily_bin54.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647828/ft1_filtered_4FGL_J1542.3+1801_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/647828/ft2_4FGL_J1542.3+1801_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/647828/ltcube_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.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/647828/ft2_4FGL_J1542.3+1801_daily_bin54.fits
.....................!
real 15.38
user 14.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647828/ft1_filtered_4FGL_J1542.3+1801_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/647828/ft2_4FGL_J1542.3+1801_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/647828/ltcube_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.fits outfile=/scratch/kocevski/647828/expmap_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.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/647828/ltcube_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.fits
.....................!
real 191.59
user 186.43
sys 4.75

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/647828/ft1_filtered_4FGL_J1542.3+1801_daily_bin54.fits scfile=/scratch/kocevski/647828/ft2_4FGL_J1542.3+1801_daily_bin54.fits outfile=/scratch/kocevski/647828/cmap_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647828/ft1_filtered_4FGL_J1542.3+1801_daily_bin54.fits scfile=/scratch/kocevski/647828/ft2_4FGL_J1542.3+1801_daily_bin54.fits outfile=/scratch/kocevski/647828/cmap_HighResolution_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.306       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9522       1.0000         .10000E-03   10000.    
     4 'norm      '    3.7103       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13889E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    26.127       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0367       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2547       1.0000         .10000E-03   10000.    
    17 'norm      '    24.828       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1801       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89550       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=   7166.149     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2096 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3786       -.16339E-06** at limit **
   2  Prefactor     18.317        34.962       -.84762E-05    .38298E-05
   3  Prefactor     4.9516        6.5118        .30476E-06   -.67024E-04
   4  norm          3.7102        .52394        .36996E-07    .26873E-03
   5  norm          .10000E-03    16.800        .10019E-05** at limit **
   6  Prefactor     .10003E-03    308.33       -.52187E-04** at limit **
   7  Prefactor     .10000E-03    3.6028        .41479E-07** at limit **
   8  Prefactor     27.588        33.985       -.81799E-05    .46047E-04
   9  Prefactor     .20746E-03    1.0575        .13905E-06** at limit **
  10  Prefactor     .10000E-03    8.7616        .14433E-06** at limit **
  11  norm          4.9020        2.6566       -.53943E-07   -.13710E-04
  12  Prefactor     .10000E-03    12.164       -.36588E-06** at limit **
  13  Prefactor     .10000E-03    27.657       -.18765E-05** at limit **
  14  norm          26.125        10.472        .11148E-05   -.60598E-05
  15  norm          2.0366        1.4716       -.13618E-06   -.80121E-04
  16  Prefactor     8.2533        12.895        .28268E-05   -.60471E-04
  17  norm          24.823        16.857        .53699E-05   -.10326E-04
  18  Prefactor     .10000E-03    3.5553       -.18628E-07** at limit **
  19  Normalizat    1.1802        .23198        .39248E-06    .11562E-03
  20  Prefactor     .89556        .12479       -.48690E-06    .22917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.3165
  Prefactor  = 4.95155
  norm       = 3.71022
  norm       = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 27.5881
  Prefactor  = 0.000207457
  Prefactor  = 0.0001
  norm       = 4.90195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.1253
  norm       = 2.03664
  Prefactor  = 8.25332
  norm       = 24.8228
  Prefactor  = 0.0001
  Normalizat = 1.18022
  Prefactor  = 0.895564
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.149     FROM HESSE     STATUS=OK           301 CALLS     2397 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.317        35.039        .93611E-04   -1.4852    
   3  Prefactor     4.9516        6.5052        .18073E-03   -1.5263    
   4  norm          3.7102        .52498        .22235E-04   -1.5323    
   5  norm          .10000E-03    16.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    312.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6227        .15691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.588        34.176        .76264E-04   -1.4657    
   9  Prefactor     .20746E-03    2.2064        .30719E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9020        2.6558        .98218E-04   -1.5265    
  12  Prefactor     .10000E-03    12.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.125        10.466        .78373E-04   -1.4685    
  15  norm          2.0366        1.4746        .84330E-04   -1.5423    
  16  Prefactor     8.2533        12.879        .13954E-03   -1.5133    
  17  norm          24.823        16.869        .80393E-04   -1.4711    
  18  Prefactor     .10000E-03    3.5600        .15588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1802        .28255        .32431E-03   -.87216    
  20  Prefactor     .89556        .15182        .20244E-03   -.96296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74431e-10
Minuit parameter uncertainties:
  1  1.326e-05
  2  35.0786
  3  6.50608
  4  0.524981
  5  3.40923e-06
  6  0.00606292
  7  8.32616e-07
  8  34.2001
  9  0.0307964
  10  5.66194e-06
  11  2.65588
  12  5.74304e-07
  13  2.62313e-05
  14  10.4667
  15  1.47467
  16  12.8829
  17  16.8723
  18  3.97978e-06
  19  0.282915
  20  0.151895
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  5.662e-06  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:  8.956e-01  1.519e-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.180e+00  2.829e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647828/likelihoodResults_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.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) = 7166.14946413
delta logL = -0.000542887236406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7166.14892124
delta logL = 6.74390321365e-09

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7166.149     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.559        .18142E-01** at limit **
   2  Index         1.9279        9.0059        .50000        .98134E-07
   3  Normalizat    1.1802        .11962E-01    .32431E-03    .60925E-04
   4  Prefactor     .89556        .66437E-02    .20244E-03    .13641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92786
  Normalizat = 1.18022
  Prefactor  = 0.895563
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.149     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    372.23        .27222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9279        7.7808        .50000       -.66166    
   3  Normalizat    1.1802        .34420E-01    .12972E-04   -.87216    
   4  Prefactor     .89556        .19118E-01    .80977E-05   -.96296    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.76337e-10
Minuit parameter uncertainties:
  1  0.000129599
  2  1284.22
  3  0.034421
  4  0.0191181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647828': 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) = 7166.14892015
delta logL = 1.09321626951e-06

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  1.296e-04  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  1.928e+00  1.284e+03  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:  8.956e-01  1.912e-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.180e+00  3.442e-02  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/647828/cmap_HighResolution_253324801_253584001_4FGL_J1542.3+1801_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-12 10:15:34.081232', job_id='647828', GAL2='0.90', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631466934.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='54' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:15:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 647828: <4FGL_J1542.3+1801_daily_bin54> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin54> 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) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:02:27 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:27 2021
Terminated at Sun Sep 12 10:15:34 2021
Results reported at Sun Sep 12 10:15:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin54 235.579 18.0322 253324801 253584001 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 :                                   610.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            900 sec.

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

