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


Performing analysis on: 4FGL_J1542.3+1801_daily_bin132
RA = 235.579, Dec = 18.0322
tmin = 273542401, tmax = 273801601
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='647955', job_status='RUN', time_executed='2021-09-12 10:03:43.532506', time_epoch_executed='1631466223.53' WHERE source_name='4FGL J1542.3+1801' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647955/ft1_4FGL_J1542.3+1801_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647955/ft2_4FGL_J1542.3+1801_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647955/ft1_4FGL_J1542.3+1801_daily_bin132.fits outfile=/scratch/kocevski/647955/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin132.fits ra=235.579 dec=18.0322 rad=12.0 tmin=273542401.0 tmax=273801601.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.57
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647955/ft2_4FGL_J1542.3+1801_daily_bin132.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/647955/ft1_filteredMKT_4FGL_J1542.3+1801_daily_bin132.fits evtable="EVENTS" outfile="/scratch/kocevski/647955/ft1_filtered_4FGL_J1542.3+1801_daily_bin132.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647955/ft1_filtered_4FGL_J1542.3+1801_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/647955/ft2_4FGL_J1542.3+1801_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/647955/ltcube_273542401_273801601_4FGL_J1542.3+1801_daily_bin132.fits outfile=/scratch/kocevski/647955/expmap_273542401_273801601_4FGL_J1542.3+1801_daily_bin132.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/647955/ltcube_273542401_273801601_4FGL_J1542.3+1801_daily_bin132.fits
.....................!
real 192.58
user 187.57
sys 4.59

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/647955/ft1_filtered_4FGL_J1542.3+1801_daily_bin132.fits scfile=/scratch/kocevski/647955/ft2_4FGL_J1542.3+1801_daily_bin132.fits outfile=/scratch/kocevski/647955/cmap_273542401_273801601_4FGL_J1542.3+1801_daily_bin132.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647955/ft1_filtered_4FGL_J1542.3+1801_daily_bin132.fits scfile=/scratch/kocevski/647955/ft2_4FGL_J1542.3+1801_daily_bin132.fits outfile=/scratch/kocevski/647955/cmap_HighResolution_273542401_273801601_4FGL_J1542.3+1801_daily_bin132.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=235.579 yref=18.0322 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92948E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5544       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.361       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7257       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0254       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.3521       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1312       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    50.126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5800       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0287       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0273       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=   10659.56     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1748 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2410       -.74489E-06** at limit **
   2  Prefactor     .10000E-03    10.093        .68325E-06** at limit **
   3  Prefactor     .10010E-03    3.9720       -.68699E-06** at limit **
   4  norm          2.5545        .36382        .47916E-08   -.15888E-04
   5  norm          .10001E-03    30.223        .60746E-05** at limit **
   6  Prefactor     .10000E-03    24.808       -.31322E-05** at limit **
   7  Prefactor     .10000E-03    4.6160        .71970E-07** at limit **
   8  Prefactor     12.354        25.692       -.63836E-06   -.62889E-04
   9  Prefactor     2.7258        1.8566        .32235E-07   -.63282E-05
  10  Prefactor     .10000E-03    10.763       -.61945E-07** at limit **
  11  norm          1.0265        1.2657        .24492E-07   -.90101E-05
  12  Prefactor     .10000E-03    7.3287        .39056E-06** at limit **
  13  Prefactor     .10000E-03    53.382       -.37350E-05** at limit **
  14  norm          8.3517        7.1799        .17379E-06   -.39252E-05
  15  norm          2.1313        1.2112       -.87825E-07    .10087E-03
  16  Prefactor     .10000E-03    5.6910       -.90201E-07** at limit **
  17  norm          50.126        15.309        .66905E-07   -.36371E-05
  18  Prefactor     6.5799        10.932        .42934E-05   -.14296E-03
  19  Normalizat    1.0285        .19312       -.36287E-06    .60699E-04
  20  Prefactor     1.0274        .10342       -.38292E-06    .12349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001001
  norm       = 2.55446
  norm       = 0.00010001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.354
  Prefactor  = 2.7258
  Prefactor  = 0.0001
  norm       = 1.02655
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 8.35171
  norm       = 2.13133
  Prefactor  = 0.0001
  norm       = 50.1264
  Prefactor  = 6.57988
  Normalizat = 1.02848
  Prefactor  = 1.02738
 **********
 **   18 **HESSE 
 **********

 FCN=   10659.56     FROM HESSE     STATUS=OK           291 CALLS     2039 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10010E-03    32.377        .39213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5545        .36434        .22767E-04   -1.5388    
   5  norm          .10001E-03    32.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.354        25.894        .11394E-03   -1.5005    
   9  Prefactor     2.7258        1.8583        .11235E-03   -1.5378    
  10  Prefactor     .10000E-03    10.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0265        1.2652        .50562E-04   -1.5505    
  12  Prefactor     .10000E-03    7.3450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.3517        7.1699        .13872E-03   -1.5130    
  15  norm          2.1313        1.2125        .41408E-03   -1.5416    
  16  Prefactor     .10000E-03    5.7523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          50.126        15.304        .56642E-04   -1.4291    
  18  Prefactor     6.5799        11.300        .78222E-03   -1.5195    
  19  Normalizat    1.0285        .23061        .34672E-03   -.92082    
  20  Prefactor     1.0274        .12431        .19077E-03   -.91822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58809e-09
Minuit parameter uncertainties:
  1  7.19874e-05
  2  7.49628e-05
  3  0.00359818
  4  0.364339
  5  0.00116768
  6  0.000514636
  7  5.75626e-06
  8  25.9173
  9  1.85833
  10  3.26293e-06
  11  1.26521
  12  3.61967e-05
  13  0.000924224
  14  7.17066
  15  1.21256
  16  1.15473e-05
  17  15.3049
  18  11.3035
  19  0.230836
  20  0.124349
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.000e-04  3.263e-06  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.027e+00  1.243e-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.028e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 235.579 18.032
Photon Flux Upper Limit: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647955/likelihoodResults_273542401_273801601_4FGL_J1542.3+1801_daily_bin132.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) = 10659.5607322
delta logL = -0.000441027868874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10659.5602911
delta logL = 3.37786332238e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5047       1.0000          .0000       10.000    
     3 'Normalizat'    1.0285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0274       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10659.56     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10213E-03    180.00        .18142E-02** at limit **
   2  Index         2.4163        8.2067        .50000        .10507E-04
   3  Normalizat    1.0285        .18637E-01    .34672E-03    .11804E-04
   4  Prefactor     1.0274        .10318E-01    .19077E-03    .39093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102129
  Index      = 2.41631
  Normalizat = 1.02848
  Prefactor  = 1.02738
 **********
 **   18 **HESSE 
 **********

 FCN=   10659.56     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10213E-03    712.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4163        8.3783        .50000       -.54304    
   3  Normalizat    1.0285        .39715E-01    .13869E-04   -.92082    
   4  Prefactor     1.0274        .21987E-01    .76309E-05   -.91822    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.07915e-08
Minuit parameter uncertainties:
  1  0.0788818
  2  1338.28
  3  0.0397166
  4  0.0219867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647955': 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) = 10659.5602909
delta logL = 2.12285158341e-07

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  1.021e-04  7.888e-02  1.000e-04  1.000e+04 ( 1.000e-13)
239        Index:  2.416e+00  1.338e+03  0.000e+00  1.000e+01 (-1.000e+00)
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.027e+00  2.199e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.028e+00  3.972e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.579 18.032

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/647955/cmap_HighResolution_273542401_273801601_4FGL_J1542.3+1801_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-12 10:15:39.615232', job_id='647955', GAL2='1.03', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631466939.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='132' AND source_name='4FGL J1542.3+1801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 10:15:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 647955: <4FGL_J1542.3+1801_daily_bin132> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1542.3+1801_daily_bin132 235.579 18.0322 273542401 273801601 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 :                                   712.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            895 sec.

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

