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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin280
RA = 235.579, Dec = 18.0322
tmin = 311904001, tmax = 312163201
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='649255', job_status='RUN', time_executed='2021-09-12 10:10:16.496481', time_epoch_executed='1631466616.5' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649255

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649255/ft1_4FGL_J1542.3+1801_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649255/ft2_4FGL_J1542.3+1801_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649255/ft1_4FGL_J1542.3+1801_daily_bin280.fits outfile=/scratch/kocevski/649255/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin280.fits ra=235.579 dec=18.0322 rad=12.0 tmin=311904001.0 tmax=312163201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.50
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649255/ft1_filtered_4FGL_J1542.3+1801_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/649255/ft2_4FGL_J1542.3+1801_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/649255/ltcube_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.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/649255/ft2_4FGL_J1542.3+1801_daily_bin280.fits
.....................!
real 13.82
user 13.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649255/ft1_filtered_4FGL_J1542.3+1801_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/649255/ft2_4FGL_J1542.3+1801_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/649255/ltcube_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.fits outfile=/scratch/kocevski/649255/expmap_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.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/649255/ltcube_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.fits
.....................!
real 193.32
user 187.46
sys 5.18

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/649255/ft1_filtered_4FGL_J1542.3+1801_daily_bin280.fits scfile=/scratch/kocevski/649255/ft2_4FGL_J1542.3+1801_daily_bin280.fits outfile=/scratch/kocevski/649255/cmap_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649255/ft1_filtered_4FGL_J1542.3+1801_daily_bin280.fits scfile=/scratch/kocevski/649255/ft2_4FGL_J1542.3+1801_daily_bin280.fits outfile=/scratch/kocevski/649255/cmap_HighResolution_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.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 2.34
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.614       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.161       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.4982       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6187       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.047       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9088       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1257       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=   7986.182     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2040 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6610        .47794E-10** at limit **
   2  Prefactor     .10000E-03    10.767       -.46698E-08** at limit **
   3  Prefactor     .10000E-03    2.3104        .53216E-08** at limit **
   4  norm          .10000E-03    .10340       -.18883E-07** at limit **
   5  norm          .10000E-03    13.012        .22138E-08** at limit **
   6  Prefactor     52.653        46.434        .45866E-06    .71709E-04
   7  Prefactor     7.4822        7.4658        .60419E-07   -.16434E-04
   8  Prefactor     10.347        39.646        .24645E-06   -.19182E-04
   9  Prefactor     1.9114        2.5932        .18830E-06   -.20684E-03
  10  Prefactor     34.167        44.865        .19851E-06    .22135E-04
  11  norm          1.0334        1.7706        .95912E-06    .11123E-04
  12  Prefactor     2.4221        113.14        .18462E-06   -.51604E-05
  13  Prefactor     .10000E-03    23.327       -.31446E-07** at limit **
  14  norm          8.5013        10.453       -.24874E-06   -.11379E-03
  15  norm          3.6184        1.8581        .40066E-09   -.32760E-04
  16  Prefactor     14.051        11.361        .16286E-07   -.66018E-04
  17  norm          .10000E-03    5.0944       -.30116E-07** at limit **
  18  Prefactor     9.9137        10.322        .10742E-06    .91682E-05
  19  Normalizat    1.0141        .24128       -.80900E-06   -.30287E-04
  20  Prefactor     1.1259        .12469        .23053E-06   -.17444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 52.6529
  Prefactor  = 7.48222
  Prefactor  = 10.347
  Prefactor  = 1.91137
  Prefactor  = 34.1674
  norm       = 1.03342
  Prefactor  = 2.42212
  Prefactor  = 0.0001
  norm       = 8.50135
  norm       = 3.61841
  Prefactor  = 14.0509
  norm       = 0.0001
  Prefactor  = 9.91369
  Normalizat = 1.01411
  Prefactor  = 1.12592
 **********
 **   18 **HESSE 
 **********

 FCN=   7986.182     FROM HESSE     STATUS=OK           297 CALLS     2337 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3123        .13266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .26032        .55351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.653        46.627        .55294E-04   -1.4255    
   7  Prefactor     7.4822        7.4700        .14659E-03   -1.5161    
   8  Prefactor     10.347        39.723        .12407E-03   -1.5065    
   9  Prefactor     1.9114        2.5717        .15793E-03   -1.5431    
  10  Prefactor     34.167        44.464        .68562E-04   -1.4538    
  11  norm          1.0334        1.7780        .17876E-02   -1.5505    
  12  Prefactor     2.4221        109.31        .26217E-03   -1.5397    
  13  Prefactor     .10000E-03    23.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5013        10.454        .13751E-03   -1.5125    
  15  norm          3.6184        1.8559        .83187E-04   -1.5328    
  16  Prefactor     14.051        11.363        .10687E-03   -1.4958    
  17  norm          .10000E-03    5.1008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9137        10.314        .12730E-03   -1.5078    
  19  Normalizat    1.0141        .27925        .35930E-03   -.92559    
  20  Prefactor     1.1259        .14623        .18959E-03   -.88643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76442e-10
Minuit parameter uncertainties:
  1  5.47161e-07
  2  1.09883e-06
  3  4.16017e-08
  4  4.05295e-06
  5  3.60999e-07
  6  46.6595
  7  7.47095
  8  39.8243
  9  2.5718
  10  44.5069
  11  1.77813
  12  32.6058
  13  6.09469e-06
  14  10.4559
  15  1.85589
  16  11.3647
  17  4.08009e-06
  18  10.3162
  19  0.279653
  20  0.14628
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  3.417e+01  4.451e+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:  1.126e+00  1.463e-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.014e+00  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/649255/likelihoodResults_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.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) = 7984.59615683
delta logL = 1.58558461932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7984.454066
delta logL = 1.72767545032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18895E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0932       1.0000          .0000       10.000    
     3 'Normalizat'    .90891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1731       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=   7984.454     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      330 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18501E-01    .16333        .16428E-02    .37741E-02
   2  Index         7.1033        2.4018        .12906        .12656E-03
   3  Normalizat    .90922        .59624E-01    .85108E-01   -.12264E-04
   4  Prefactor     1.1730        .33072E-01    .35299E-01    .19302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.018501
  Index      = 7.10334
  Normalizat = 0.90922
  Prefactor  = 1.17297
 **********
 **   18 **HESSE 
 **********

 FCN=   7984.454     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      365 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18501E-01    .36041        .74033E-04   -1.5681    
   2  Index         7.1033        3.6936        .51100E-02    .43418    
   3  Normalizat    .90922        .20642        .37683E-03   -.96137    
   4  Prefactor     1.1730        .11260        .18616E-03   -.87167    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40267e-07
Minuit parameter uncertainties:
  1  0.162874
  2  4.31588
  3  0.206603
  4  0.112626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649255': 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) = 7984.45406076
delta logL = 1.72768069317

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.850e-02  1.629e-01  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  7.103e+00  4.316e+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:  1.173e+00  1.126e-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:  9.092e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 235.579 18.032
Photon Index (Free Index): 7.10 +/- 4.32
Photon Flux (Free Index): 1.21e-07 +/- 7.81e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.03e-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/649255/cmap_HighResolution_311904001_312163201_4FGL_J1542.3+1801_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.73e+00', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-12 10:21:00.975682', photon_index_error2='4.32', photon_index2='7.10', ts='0.75', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.03e-05', EG='1.01', time_epoch_completed='1631467260.98', return_code='0', job_id='649255', GAL2='1.17', EG2='0.91', return_code2='102', photon_flux_error2='7.81e-08', ts2='4.46', photon_index='2.52' WHERE bin_id='280' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:21:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 649255: <4FGL_J1542.3+1801_daily_bin280> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin280> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 10:05:26 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:10:04 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:10:04 2021
Terminated at Sun Sep 12 10:21:01 2021
Results reported at Sun Sep 12 10:21:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin280 235.579 18.0322 311904001 312163201 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 :                                   639.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            935 sec.

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

