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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin111
RA = 235.579, Dec = 18.0322
tmin = 268099201, tmax = 268358401
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='647922', job_status='RUN', time_executed='2021-09-12 10:03:25.874936', time_epoch_executed='1631466205.87' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647922/ft1_4FGL_J1542.3+1801_daily_bin111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647922/ft2_4FGL_J1542.3+1801_daily_bin111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647922/ft1_4FGL_J1542.3+1801_daily_bin111.fits outfile=/scratch/kocevski/647922/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin111.fits ra=235.579 dec=18.0322 rad=12.0 tmin=268099201.0 tmax=268358401.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.23
user 1.06
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647922/ft1_filtered_4FGL_J1542.3+1801_daily_bin111.fits evtable="EVENTS" scfile=/scratch/kocevski/647922/ft2_4FGL_J1542.3+1801_daily_bin111.fits sctable="SC_DATA" expcube=/scratch/kocevski/647922/ltcube_268099201_268358401_4FGL_J1542.3+1801_daily_bin111.fits outfile=/scratch/kocevski/647922/expmap_268099201_268358401_4FGL_J1542.3+1801_daily_bin111.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/647922/ltcube_268099201_268358401_4FGL_J1542.3+1801_daily_bin111.fits
.....................!
real 159.22
user 154.09
sys 4.65

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/647922/ft1_filtered_4FGL_J1542.3+1801_daily_bin111.fits scfile=/scratch/kocevski/647922/ft2_4FGL_J1542.3+1801_daily_bin111.fits outfile=/scratch/kocevski/647922/cmap_268099201_268358401_4FGL_J1542.3+1801_daily_bin111.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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647922/ft1_filtered_4FGL_J1542.3+1801_daily_bin111.fits scfile=/scratch/kocevski/647922/ft2_4FGL_J1542.3+1801_daily_bin111.fits outfile=/scratch/kocevski/647922/cmap_HighResolution_268099201_268358401_4FGL_J1542.3+1801_daily_bin111.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.49
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7803       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.708       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88303E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.353       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9837       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.080       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5811       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3917       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0195       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=   11507.62     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2072 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.987       -.24376E-05** at limit **
   2  Prefactor     .10000E-03    12.392        .12609E-06** at limit **
   3  Prefactor     .10000E-03    4.7374       -.32007E-07** at limit **
   4  norm          1.7804        .32461        .18967E-07    .61459E-03
   5  norm          .10000E-03    10.515       -.66465E-07** at limit **
   6  Prefactor     .10000E-03    34.814        .16961E-05** at limit **
   7  Prefactor     .10000E-03    1.6628       -.84512E-08** at limit **
   8  Prefactor     14.695        32.029       -.18092E-04    .22586E-03
   9  Prefactor     .81134E-01    .85748       -.51620E-06   -.51472E-04
  10  Prefactor     29.360        31.138        .63048E-05   -.12320E-03
  11  norm          .10000E-03    1.2008        .67433E-08** at limit **
  12  Prefactor     7.9832        22.554       -.26412E-05   -.10925E-04
  13  Prefactor     .10000E-03    49.417        .15233E-05** at limit **
  14  norm          15.081        7.8967       -.62137E-06   -.13857E-02
  15  norm          1.9549        1.2955        .24606E-08   -.18943E-03
  16  Prefactor     .10000E-03    3.2642       -.27482E-07** at limit **
  17  norm          1.6179        10.532       -.24823E-05   -.40158E-03
  18  Prefactor     3.5809        9.4114       -.13407E-05   -.18149E-03
  19  Normalizat    1.3911        .19899        .19256E-05    .89294E-04
  20  Prefactor     1.0198        .10486        .32256E-07    .31623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78043
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6949
  Prefactor  = 0.0811337
  Prefactor  = 29.3604
  norm       = 0.0001
  Prefactor  = 7.98315
  Prefactor  = 0.0001
  norm       = 15.0813
  norm       = 1.95491
  Prefactor  = 0.0001
  norm       = 1.61793
  Prefactor  = 3.58091
  Normalizat = 1.39115
  Prefactor  = 1.01977
 **********
 **   18 **HESSE 
 **********

 FCN=   11507.62     FROM HESSE     STATUS=OK           289 CALLS     2361 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7804        .32509        .25199E-04   -1.5441    
   5  norm          .10000E-03    10.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6645        .13509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.695        31.685        .10444E-03   -1.4941    
   9  Prefactor     .81134E-01    7.0129        .19096E-02   -1.5651    
  10  Prefactor     29.360        31.014        .73949E-04   -1.4624    
  11  norm          .10000E-03    1.2381        .22929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9832        22.535        .14190E-03   -1.5143    
  13  Prefactor     .10000E-03    49.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.081        8.0510        .51569E-03   -1.4931    
  15  norm          1.9549        1.2958        .95388E-04   -1.5428    
  16  Prefactor     .10000E-03    3.2762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6179        11.050        .33244E-03   -1.5454    
  18  Prefactor     3.5809        9.4617        .21355E-03   -1.5329    
  19  Normalizat    1.3911        .24097        .32480E-03   -.80885    
  20  Prefactor     1.0198        .12727        .20352E-03   -.92073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34573e-08
Minuit parameter uncertainties:
  1  0.000124511
  2  1.91655e-06
  3  7.29622e-06
  4  0.325087
  5  1.99957e-06
  6  5.97088e-05
  7  1.17284e-06
  8  31.7209
  9  1.50787
  10  31.0313
  11  8.03374e-07
  12  22.5592
  13  0.000122972
  14  8.05154
  15  1.29578
  16  4.57832e-06
  17  8.45848
  18  9.46569
  19  0.24117
  20  0.127307
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  2.936e+01  3.103e+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.020e+00  1.273e-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.391e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 235.579 18.032
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/647922/likelihoodResults_268099201_268358401_4FGL_J1542.3+1801_daily_bin111.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) = 11506.1693834
delta logL = 1.44980079343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11506.1062292
delta logL = 1.5129550025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6563       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0288       1.0000          .0000       10.000    
     3 'Normalizat'    1.2855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0565       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=   11506.11     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      264 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6515        48.450        .38884E-02    .79056E-03
   2  Index         4.0293        2.2872        .13801        .29066E-03
   3  Normalizat    1.2857        .61224E-01    .75806E-01    .90819E-04
   4  Prefactor     1.0564        .32627E-01    .39546E-01    .75811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.65148
  Index      = 4.02927
  Normalizat = 1.28573
  Prefactor  = 1.05635
 **********
 **   18 **HESSE 
 **********

 FCN=   11506.11     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6515        88.977        .13954E-03   -1.5192    
   2  Index         4.0293        3.6307        .48487E-02   -.19539    
   3  Normalizat    1.2857        .22909        .33550E-03   -.83993    
   4  Prefactor     1.0564        .12437        .20028E-03   -.90874    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15868e-09
Minuit parameter uncertainties:
  1  48.7434
  2  4.08768
  3  0.229266
  4  0.124403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647922': 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) = 11506.1062285
delta logL = 1.51295567753

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  6.651e+00  4.874e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  4.029e+00  4.088e+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.056e+00  1.244e-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.286e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 235.579 18.032
Photon Index (Free Index): 4.03 +/- 4.09
Photon Flux (Free Index): 1.21e-07 +/- 6.66e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.44e-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/647922/cmap_HighResolution_268099201_268358401_4FGL_J1542.3+1801_daily_bin111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='1.81e-05', photon_flux_error='4.48e-08', dlogl='1.51e+00', energy_flux='1.20e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-12 10:14:22.011913', photon_index_error2='4.09', photon_index2='4.03', ts='1.21', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.44e-05', EG='1.39', time_epoch_completed='1631466862.01', return_code='0', job_id='647922', GAL2='1.06', EG2='1.29', return_code2='102', energy_flux_error='1.27e-05', photon_flux_error2='6.66e-08', ts2='4.51', photon_index='2.52' WHERE bin_id='111' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:14:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 647922: <4FGL_J1542.3+1801_daily_bin111> in cluster <slac> Done

Job <4FGL_J1542.3+1801_daily_bin111> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 10:00:41 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 10:03:11 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:03:11 2021
Terminated at Sun Sep 12 10:14:22 2021
Results reported at Sun Sep 12 10:14:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin111 235.579 18.0322 268099201 268358401 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 :                                   653.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            821 sec.

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

