/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 233 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 = 7165
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1542.3+1801_daily_bin1598
RA = 235.579, Dec = 18.0322
tmin = 653529601, tmax = 653788801
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='727914', job_status='RUN', time_executed='2021-09-20 00:39:22.118715', time_epoch_executed='1632123562.12' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727914/ft1_4FGL_J1542.3+1801_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727914/ft2_4FGL_J1542.3+1801_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727914/ft1_4FGL_J1542.3+1801_daily_bin1598.fits outfile=/scratch/kocevski/727914/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin1598.fits ra=235.579 dec=18.0322 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.07
user 4.82
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727914/ft1_filtered_4FGL_J1542.3+1801_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/727914/ft2_4FGL_J1542.3+1801_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/727914/ltcube_653529601_653788801_4FGL_J1542.3+1801_daily_bin1598.fits outfile=/scratch/kocevski/727914/expmap_653529601_653788801_4FGL_J1542.3+1801_daily_bin1598.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/727914/ltcube_653529601_653788801_4FGL_J1542.3+1801_daily_bin1598.fits
.....................!
real 190.66
user 185.59
sys 4.71

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/727914/ft1_filtered_4FGL_J1542.3+1801_daily_bin1598.fits scfile=/scratch/kocevski/727914/ft2_4FGL_J1542.3+1801_daily_bin1598.fits outfile=/scratch/kocevski/727914/cmap_653529601_653788801_4FGL_J1542.3+1801_daily_bin1598.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727914/ft1_filtered_4FGL_J1542.3+1801_daily_bin1598.fits scfile=/scratch/kocevski/727914/ft2_4FGL_J1542.3+1801_daily_bin1598.fits outfile=/scratch/kocevski/727914/cmap_HighResolution_653529601_653788801_4FGL_J1542.3+1801_daily_bin1598.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.704       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.990       1.0000         .10000E-03   10000.    
     4 'norm      '    .39100       1.0000         .10000E-03   10000.    
     5 'norm      '    23.391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.381       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14201E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.523       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5175       1.0000         .10000E-03   10000.    
    14 'norm      '    12.039       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9224       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    55.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2023       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6871.528     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2115 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.704        45.346         .0000       -.60193E-03
   2  Prefactor     .10000E-03    15.090         .0000    ** at limit **
   3  Prefactor     27.990        14.067         .0000        .25880E-03
   4  norm          .39098        .32285         .0000       -.84658E-04
   5  norm          23.391        43.466         .0000        .48261E-03
   6  Prefactor     70.381        73.068         .0000        .58055E-03
   7  Prefactor     .10000E-03    2.9070         .0000    ** at limit **
   8  Prefactor     27.327        42.159         .0000        .96727E-03
   9  Prefactor     .10000E-03    2.0957         .0000    ** at limit **
  10  Prefactor     40.524        37.845         .0000       -.41367E-03
  11  norm          2.8550        2.6793         .0000        .70038E-04
  12  Prefactor     .10000E-03    38.013         .0000    ** at limit **
  13  Prefactor     6.5174        183.99         .0000        .11308E-03
  14  norm          12.039        13.114         .0000        .13960E-03
  15  norm          8.9224        2.8858         .0000       -.92923E-03
  16  Prefactor     .10000E-03    4.6405         .0000    ** at limit **
  17  norm          55.749        23.762         .0000       -.12372E-03
  18  Prefactor     1.1965        34.965         .0000        .65191E-02
  19  Normalizat    1.0782        .26679         .0000       -.39943E-04
  20  Prefactor     .99961        .13679         .0000       -.39113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.7041
  Prefactor  = 0.0001
  Prefactor  = 27.9896
  norm       = 0.390981
  norm       = 23.3905
  Prefactor  = 70.3813
  Prefactor  = 0.0001
  Prefactor  = 27.3266
  Prefactor  = 0.0001
  Prefactor  = 40.5236
  norm       = 2.85503
  Prefactor  = 0.0001
  Prefactor  = 6.51742
  norm       = 12.0391
  norm       = 8.92239
  Prefactor  = 0.0001
  norm       = 55.7494
  Prefactor  = 1.19647
  Normalizat = 1.07816
  Prefactor  = 0.999605
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.528     FROM HESSE     STATUS=OK           289 CALLS     2404 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.704        45.338        .44168E-04   -1.3887    
   2  Prefactor     .10000E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.990        14.063        .75725E-04   -1.4649    
   4  norm          .39098        .30718        .40947E-03   -1.5583    
   5  norm          23.391        43.470        .82822E-04   -1.4740    
   6  Prefactor     70.381        73.281        .47849E-04   -1.4028    
   7  Prefactor     .10000E-03    2.9108        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.327        42.204        .76636E-04   -1.4662    
   9  Prefactor     .10000E-03    4.2480        .22934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.524        37.844        .62968E-04   -1.4434    
  11  norm          2.8550        2.6780        .12544E-03   -1.5370    
  12  Prefactor     .10000E-03    38.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5174        183.62        .15720E-03   -1.5197    
  14  norm          12.039        13.078        .11545E-03   -1.5014    
  15  norm          8.9224        2.8863        .37821E-03   -1.5110    
  16  Prefactor     .10000E-03    4.6574        .17438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          55.749        23.746        .53725E-04   -1.4213    
  18  Prefactor     1.1965        35.461        .20687E-02   -1.5489    
  19  Normalizat    1.0782        .31723        .36533E-03   -.90456    
  20  Prefactor     .99961        .16524        .20365E-03   -.92743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41249e-08
Minuit parameter uncertainties:
  1  45.3568
  2  2.89771e-05
  3  14.0649
  4  0.307184
  5  43.5285
  6  73.3751
  7  1.68943e-05
  8  42.2505
  9  6.29671e-06
  10  37.8666
  11  2.67808
  12  3.51785e-05
  13  69.4226
  14  13.0807
  15  2.88631
  16  2.19512e-05
  17  23.75
  18  13.0353
  19  0.317787
  20  0.16532
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  4.052e+01  3.787e+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.996e-01  1.653e-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.078e+00  3.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 235.579 18.032
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.86e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.55e-05

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

Saving results to:
/scratch/kocevski/727914/likelihoodResults_653529601_653788801_4FGL_J1542.3+1801_daily_bin1598.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) = 6871.52511127
delta logL = 0.00321515957057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6871.52376246
delta logL = 0.00456397064227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.447       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5949       1.0000          .0000       10.000    
     3 'Normalizat'    1.0741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0010       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=   6871.524     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      234 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.447        843.25        .16160E-02    .70076E-04
   2  Index         2.5949        6.2965        .23215        .58824E-04
   3  Normalizat    1.0742        .93247E-01    .82649E-01    .18431E-04
   4  Prefactor     1.0010        .42605E-01    .45363E-01    .40600E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4468
  Index      = 2.59489
  Normalizat = 1.07421
  Prefactor  = 1.00099
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.524     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.447        44.219        .64640E-04   -1.4467    
   2  Index         2.5949        .79593        .79295E-02   -.50182    
   3  Normalizat    1.0742        .30423        .36592E-03   -.90584    
   4  Prefactor     1.0010        .16338        .20352E-03   -.92697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62596e-09
Minuit parameter uncertainties:
  1  44.257
  2  0.800374
  3  0.30473
  4  0.163462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727914': 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) = 6871.52376243
delta logL = 0.0045640040762

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  3.845e+01  4.426e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.595e+00  8.004e-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.001e+00  1.635e-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.074e+00  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 235.579 18.032
Photon Index (Free Index): 2.59 +/- 0.80
Photon Flux (Free Index): 6.19e-08 +/- 6.55e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/727914/cmap_HighResolution_653529601_653788801_4FGL_J1542.3+1801_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='5.86e-08', energy_flux2='1.63e-05', photon_flux_error='5.47e-08', dlogl='4.56e-03', energy_flux='1.66e-05', photon_flux2='6.19e-08', job_status='DONE', time_completed='2021-09-20 00:49:07.281083', photon_index_error2='0.80', photon_index2='2.59', ts='1.89', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.55e-05', EG='1.08', time_epoch_completed='1632124147.28', return_code='0', job_id='727914', GAL2='1.00', EG2='1.07', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='6.55e-08', ts2='1.89', photon_index='2.52' WHERE bin_id='1598' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:49:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 727914: <4FGL_J1542.3+1801_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin1598> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 20 00:35:18 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:35:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:35:19 2021
Terminated at Mon Sep 20 00:49:08 2021
Results reported at Mon Sep 20 00:49:08 2021

Your job looked like:

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

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

