/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 92 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 = 7462
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1539.6+2743_daily_bin1646
RA = 234.902, Dec = 27.7277
tmin = 665971201, tmax = 666230401
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='670028', job_status='RUN', time_executed='2022-02-11 00:14:06.086658', time_epoch_executed='1644567246.09' WHERE source_name='4FGL J1539.6+2743' and cadence='daily' and bin_id='1646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670028/ft1_4FGL_J1539.6+2743_daily_bin1646.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670028/ft1_4FGL_J1539.6+2743_daily_bin1646.fits outfile=/scratch/kocevski/670028/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1646.fits ra=234.902 dec=27.7277 rad=12.0 tmin=665971201.0 tmax=666230401.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.59
user 4.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.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/670028/ft1_filteredMKT_4FGL_J1539.6+2743_daily_bin1646.fits evtable="EVENTS" outfile="/scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits" evtable="EVENTS" scfile=/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits sctable="SC_DATA" outfile=/scratch/kocevski/670028/ltcube_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.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/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits
.....................!
real 19.97
user 19.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits evtable="EVENTS" scfile=/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits sctable="SC_DATA" expcube=/scratch/kocevski/670028/ltcube_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.fits outfile=/scratch/kocevski/670028/expmap_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.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/670028/ltcube_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.fits
.....................!
real 189.80
user 185.42
sys 4.01

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1539.6+2743 @ 234.902 27.7277

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits scfile=/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits outfile=/scratch/kocevski/670028/cmap_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.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=234.902 yref=27.7277 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits scfile=/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits outfile=/scratch/kocevski/670028/cmap_HighResolution_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.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=234.902 yref=27.7277 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits evtable="EVENTS" scfile=/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670028/Model_4FGL_J1539.6+2743_daily_bin1646.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/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits.....................!
real 48.18
user 46.93
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits', '/scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits', expMap='/scratch/kocevski/670028/expmap_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.fits', expCube='/scratch/kocevski/670028/ltcube_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670028/Model_4FGL_J1539.6+2743_daily_bin1646.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1539.6+2743'

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/670028/ft1_filtered_4FGL_J1539.6+2743_daily_bin1646.fits
Spacecraft file(s): /scratch/kocevski/670028/ft2_4FGL_J1539.6+2743_daily_bin1646.fits
Exposure map: /scratch/kocevski/670028/expmap_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.fits
Exposure cube: /scratch/kocevski/670028/ltcube_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670028/Model_4FGL_J1539.6+2743_daily_bin1646.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) = 6172.71561425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27442E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.186       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0622       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93595       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6172.663     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     1609 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2860        .90712E-02** at limit **
   2  Prefactor     .10000E-03    18.156        .90712E-02** at limit **
   3  Prefactor     .10000E-03    23.142        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.2918        .90712E-02** at limit **
   5  norm          .10000E-03    .32157        .90712E-02** at limit **
   6  Prefactor     .10000E-03    5.9110        .58868E-01** at limit **
   7  Prefactor     17.658        37.636        .23750E-02   -.30444E-04
   8  Prefactor     .10000E-03    4.0176        .90712E-02** at limit **
   9  norm          .10000E-03    2.7601        .90712E-02** at limit **
  10  Prefactor     5.9614        3.0910        .41120E-02    .61353E-04
  11  Prefactor     .10000E-03    30.835        .90712E-02** at limit **
  12  Prefactor     .10000E-03    18.249        .90712E-02** at limit **
  13  Prefactor     .10000E-03    13.763        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.9049        .90712E-02** at limit **
  15  Prefactor     14.185        13.865        .26586E-02    .70891E-04
  16  Normalizat    1.0618        .17904        .58981E-01   -.31024E-04
  17  Prefactor     .93617        .12345        .45462E-01   -.46542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6583
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.96138
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.185
  Normalizat = 1.06184
  Prefactor  = 0.936169
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.663     FROM HESSE     STATUS=OK           217 CALLS     1826 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3166        .15884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3254        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .32681        .43335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.234        .35023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.658        36.275        .95002E-04   -1.4867    
   8  Prefactor     .10000E-03    4.0181        .15380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7606        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9614        3.0952        .93583E-04   -1.5220    
  11  Prefactor     .10000E-03    30.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0213        .26127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.185        13.864        .10634E-03   -1.4955    
  16  Normalizat    1.0618        .20828        .26084E-03   -.90987    
  17  Prefactor     .93617        .14454        .19439E-03   -.94888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59283e-11
Minuit parameter uncertainties:
  1  2.29363e-07
  2  0.000176564
  3  7.89049e-05
  4  6.7062e-06
  5  1.08756e-08
  6  3.67406e-05
  7  36.3204
  8  1.13814e-05
  9  4.78611e-06
  10  3.09531
  11  0.000141602
  12  0.000213309
  13  2.30033e-05
  14  9.75421e-06
  15  13.8672
  16  0.208436
  17  0.144601
Done.

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

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  5.961e+00  3.095e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.362e-01  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.062e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.92
Ra Dec: 234.902 27.728
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 8.33e-08 +/- 4.32e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.56e-05

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) = 6171.77043391
delta logL = 0.892532090546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6171.74814394
delta logL = 0.914822060376

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6171.748     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8841        14.345        .59829E-02    .25109E-02
   2  Index         3.1592        2.5119        .90716E-01    .13131E-03
   3  Normalizat    .96895        .91342E-01    .45776E-01   -.50317E-05
   4  Prefactor     .97343        .52279E-01    .45934E-01   -.74498E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88409
  Index      = 3.15917
  Normalizat = 0.968946
  Prefactor  = 0.973432
 **********
 **   18 **HESSE 
 **********

 FCN=   6171.748     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8841        3.3034        .48770E-04   -1.5368    
   2  Index         3.1592        .76940        .36471E-02   -.37703    
   3  Normalizat    .96895        .21934        .27077E-03   -.94078    
   4  Prefactor     .97343        .14827        .19088E-03   -.93620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28219e-09
Minuit parameter uncertainties:
  1  3.30361
  2  0.772953
  3  0.219547
  4  0.148329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670028': 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) = 6171.74814228
delta logL = 0.914823715036

Extracting fit parameters...

4FGL J1539.6+2743
   Spectrum: PowerLaw
263    Prefactor:  2.884e+00  3.304e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        Index:  3.159e+00  7.730e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  9.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.734e-01  1.483e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.689e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.08
Ra Dec: 234.902 27.728
Photon Index (Free Index): 3.16 +/- 0.77
Photon Flux (Free Index): 1.59e-07 +/- 7.86e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.17e-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/670028/cmap_HighResolution_665971201_666230401_4FGL_J1539.6+2743_daily_bin1646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.33e-08', energy_flux2='2.97e-05', photon_flux_error='4.32e-08', dlogl='9.15e-01', energy_flux='3.01e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2022-02-11 00:23:00.248713', photon_index_error2='0.77', photon_index2='3.16', ts='10.92', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.06', time_epoch_completed='1644567780.25', return_code='0', job_id='670028', GAL2='0.97', EG2='0.97', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='7.86e-08', ts2='13.08', photon_index='2.33' WHERE bin_id='1646' AND source_name='4FGL J1539.6+2743' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 11 00:23:00 PST 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 670027: <4FGL_J1539.6+2743_daily_bin1646> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin1646> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Feb 11 00:07:49 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 11 00:08:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 11 00:08:18 2022
Terminated at Fri Feb 11 00:21:43 2022
Results reported at Fri Feb 11 00:21:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin1646 234.902 27.7277 665971201 666230401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1539.6+2743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   528.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             235.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            834 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 670028: <4FGL_J1539.6+2743_daily_bin1646> in cluster <slac> Done

Job <4FGL_J1539.6+2743_daily_bin1646> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Feb 11 00:07:49 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 11 00:08:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 11 00:08:18 2022
Terminated at Fri Feb 11 00:23:01 2022
Results reported at Fri Feb 11 00:23:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1539.6+2743_daily_bin1646 234.902 27.7277 665971201 666230401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1539.6+2743 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   524.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            912 sec.

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

