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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin1601
RA = 235.579, Dec = 18.0322
tmin = 654307201, tmax = 654566401
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='542826', job_status='RUN', time_executed='2021-09-29 00:19:12.343500', time_epoch_executed='1632899952.34' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542826

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542826/ft1_4FGL_J1542.3+1801_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542826/ft2_4FGL_J1542.3+1801_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542826/ft1_4FGL_J1542.3+1801_daily_bin1601.fits outfile=/scratch/kocevski/542826/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin1601.fits ra=235.579 dec=18.0322 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.23
user 3.98
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542826/ft1_filtered_4FGL_J1542.3+1801_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542826/ft2_4FGL_J1542.3+1801_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542826/ltcube_654307201_654566401_4FGL_J1542.3+1801_daily_bin1601.fits outfile=/scratch/kocevski/542826/expmap_654307201_654566401_4FGL_J1542.3+1801_daily_bin1601.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/542826/ltcube_654307201_654566401_4FGL_J1542.3+1801_daily_bin1601.fits
.....................!
real 190.04
user 185.20
sys 4.51

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/542826/ft1_filtered_4FGL_J1542.3+1801_daily_bin1601.fits scfile=/scratch/kocevski/542826/ft2_4FGL_J1542.3+1801_daily_bin1601.fits outfile=/scratch/kocevski/542826/cmap_654307201_654566401_4FGL_J1542.3+1801_daily_bin1601.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542826/ft1_filtered_4FGL_J1542.3+1801_daily_bin1601.fits scfile=/scratch/kocevski/542826/ft2_4FGL_J1542.3+1801_daily_bin1601.fits outfile=/scratch/kocevski/542826/cmap_HighResolution_654307201_654566401_4FGL_J1542.3+1801_daily_bin1601.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    105.33       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9046       1.0000         .10000E-03   10000.    
     4 'norm      '    .58118E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4804       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.897       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8667       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6562       1.0000         .10000E-03   10000.    
    17 'norm      '    30.114       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.141       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84474       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8099.534     FROM MIGRAD    STATUS=CONVERGED     65 CALLS     1691 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     105.33        1.0046        .20126E-06   -.71421E-03
   2  Prefactor     .10174E-03    10.478       -.10018E-03** at limit **
   3  Prefactor     9.9037        1.0199       -.13847E-05   -.72584E-03
   4  norm          .58096E-01    .10288        .30290E-06    .15938E-03
   5  norm          .10016E-03    14.661        .72861E-04** at limit **
   6  Prefactor     .10036E-03    13.731        .86554E-04** at limit **
   7  Prefactor     .10000E-03    3.2171        .45135E-05** at limit **
   8  Prefactor     .10017E-03    13.382        .85133E-04** at limit **
   9  Prefactor     4.4801        3.2456       -.11645E-05    .26807E-03
  10  Prefactor     14.900        1.0990        .26229E-05   -.84148E-03
  11  norm          7.6275        3.2806       -.15983E-05   -.42433E-03
  12  Prefactor     .10275E-03    12.107       -.65554E-04** at limit **
  13  Prefactor     .10083E-03    112.88       -.41881E-03** at limit **
  14  norm          1.8532        2.3540        .34260E-04    .31731E-02
  15  norm          9.4546        2.5332       -.10758E-05   -.30202E-03
  16  Prefactor     3.6538        1.0191        .23227E-06   -.27881E-03
  17  norm          30.115        1.0111        .52545E-06    .74116E-03
  18  Prefactor     18.140        1.0042       -.20295E-06   -.54269E-03
  19  Normalizat    .84480        .27605       -.90887E-05    .33201E-04
  20  Prefactor     1.1474        .15139       -.53370E-05    .48848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 105.334
  Prefactor  = 0.000101735
  Prefactor  = 9.90375
  norm       = 0.058096
  norm       = 0.000100162
  Prefactor  = 0.000100357
  Prefactor  = 0.0001
  Prefactor  = 0.000100172
  Prefactor  = 4.48013
  Prefactor  = 14.9
  norm       = 7.62746
  Prefactor  = 0.000102752
  Prefactor  = 0.000100829
  norm       = 1.85321
  norm       = 9.45462
  Prefactor  = 3.65376
  norm       = 30.1154
  Prefactor  = 18.1399
  Normalizat = 0.844804
  Prefactor  = 1.14739
 **********
 **   18 **HESSE 
 **********

 FCN=   8099.534     FROM HESSE     STATUS=OK           335 CALLS     2026 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     105.33        47.025        .97954E-03   -1.3652    
   2  Prefactor     .10174E-03    17.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9037        9.3923        .31831E-02   -1.5078    
   4  norm          .58096E-01    .12852        .85100E-02   -1.5660    
   5  norm          .10016E-03    16.342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10036E-03    28.742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10017E-03    28.441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4801        3.2549        .47555E-02   -1.5285    
  10  Prefactor     14.900        37.727        .25943E-02   -1.4936    
  11  norm          7.6275        3.3598        .36306E-02   -1.5156    
  12  Prefactor     .10275E-03    21.733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10083E-03    114.95        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8532        10.563        .76226E-02   -1.5436    
  15  norm          9.4546        2.6226        .32586E-02   -1.5093    
  16  Prefactor     3.6538        12.285        .52814E-02   -1.5326    
  17  norm          30.115        17.425        .18253E-02   -1.4610    
  18  Prefactor     18.140        15.155        .23509E-02   -1.4856    
  19  Normalizat    .84480        .24830        .89615E-01   -.98428    
  20  Prefactor     1.1474        .12986        .36013E-01   -.87966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2168e-07
Minuit parameter uncertainties:
  1  47.0417
  2  0.0111683
  3  9.39367
  4  0.128517
  5  0.00325523
  6  0.00640521
  7  1.41385e-05
  8  0.00443173
  9  3.25504
  10  37.787
  11  3.35985
  12  0.0154729
  13  0.0195663
  14  8.85115
  15  2.6226
  16  12.2933
  17  17.4282
  18  15.1583
  19  0.248633
  20  0.129896
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.490e+01  3.779e+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.147e+00  1.299e-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:  8.448e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/542826/likelihoodResults_654307201_654566401_4FGL_J1542.3+1801_daily_bin1601.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) = 8098.23459429
delta logL = 1.29979659963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8098.2139692
delta logL = 1.32042168742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67424       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2299       1.0000          .0000       10.000    
     3 'Normalizat'    .72520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1914       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=   8098.214     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      275 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67439        6.0352        .10952E-01    .17487E-02
   2  Index         5.2301        2.3334        .13722        .10044E-03
   3  Normalizat    .72522        .52877E-01    .96033E-01    .39991E-04
   4  Prefactor     1.1914        .29004E-01    .34837E-01    .29854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.674387
  Index      = 5.23008
  Normalizat = 0.725225
  Prefactor  = 1.19141
 **********
 **   18 **HESSE 
 **********

 FCN=   8098.214     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      310 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67439        15.550        .50159E-03   -1.5544    
   2  Index         5.2301        4.1788        .49614E-02    .46031E-01
   3  Normalizat    .72522        .20786        .42553E-03   -1.0291    
   4  Prefactor     1.1914        .11241        .18571E-03   -.86596    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19325e-08
Minuit parameter uncertainties:
  1  6.47807
  2  4.95042
  3  0.208087
  4  0.112432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542826': 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) = 8098.21396872
delta logL = 1.32042216781

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  6.744e-01  6.478e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  5.230e+00  4.950e+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.191e+00  1.124e-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:  7.252e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 235.579 18.032
Photon Index (Free Index): 5.23 +/- 4.95
Photon Flux (Free Index): 1.15e-07 +/- 7.84e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.27e-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/542826/cmap_HighResolution_654307201_654566401_4FGL_J1542.3+1801_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.51e-05', dlogl='1.32e+00', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-29 00:29:12.351027', photon_index_error2='4.95', photon_index2='5.23', ts='0.18', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.27e-05', EG='0.84', time_epoch_completed='1632900552.35', return_code='0', job_id='542826', GAL2='1.19', EG2='0.73', return_code2='102', photon_flux_error2='7.84e-08', ts2='3.04', photon_index='2.52' WHERE bin_id='1601' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:29:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 542826: <4FGL_J1542.3+1801_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:53 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:55 2021
Terminated at Wed Sep 29 00:29:13 2021
Results reported at Wed Sep 29 00:29:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin1601 235.579 18.0322 654307201 654566401 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 :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

