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


Performing analysis on: 4FGL_J1543.6+0452_daily_bin199
RA = 235.906, Dec = 4.8689
tmin = 290908801, tmax = 291168001
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='682692', job_status='RUN', time_executed='2021-09-12 12:00:11.666969', time_epoch_executed='1631473211.67' WHERE source_name='4FGL J1543.6+0452' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682692/ft1_4FGL_J1543.6+0452_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682692/ft1_4FGL_J1543.6+0452_daily_bin199.fits outfile=/scratch/kocevski/682692/ft1_filteredMKT_4FGL_J1543.6+0452_daily_bin199.fits ra=235.906 dec=4.8689 rad=12.0 tmin=290908801.0 tmax=291168001.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.45
user 3.22
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.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/682692/ft1_filteredMKT_4FGL_J1543.6+0452_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/682692/ltcube_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.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/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits
.....................!
real 13.73
user 13.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/682692/ltcube_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.fits outfile=/scratch/kocevski/682692/expmap_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.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/682692/ltcube_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.fits
.....................!
real 191.79
user 185.85
sys 5.22

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

Setting source of interest to:
4FGL J1543.6+0452 @ 235.906 4.8689

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits scfile=/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits outfile=/scratch/kocevski/682692/cmap_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.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.906 yref=4.8689 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits scfile=/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits outfile=/scratch/kocevski/682692/cmap_HighResolution_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.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.906 yref=4.8689 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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682692/Model_4FGL_J1543.6+0452_daily_bin199.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/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits.....................!
real 66.89
user 65.49
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits', '/scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits', expMap='/scratch/kocevski/682692/expmap_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.fits', expCube='/scratch/kocevski/682692/ltcube_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682692/Model_4FGL_J1543.6+0452_daily_bin199.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1543.6+0452'

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  3.372e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/682692/ft1_filtered_4FGL_J1543.6+0452_daily_bin199.fits
Spacecraft file(s): /scratch/kocevski/682692/ft2_4FGL_J1543.6+0452_daily_bin199.fits
Exposure map: /scratch/kocevski/682692/expmap_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.fits
Exposure cube: /scratch/kocevski/682692/ltcube_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682692/Model_4FGL_J1543.6+0452_daily_bin199.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) = 8469.7085961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .94914       1.0000         .10000E-03   10000.    
     3 'norm      '    .26174       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.760       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1075       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0110       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2325       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    27.929       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6032       1.0000         .10000E-03   10000.    
    16 'norm      '    6.1690       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.844       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2319       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0095       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8469.704     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2055 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .86160E-01   -.19796E-07** at limit **
   2  norm          .94826        2.3406       -.48269E-07   -.52427E-03
   3  norm          .26634        4.5215       -.17297E-06   -.52728E-04
   4  norm          .10000E-03    .92243       -.38039E-07** at limit **
   5  Prefactor     .10000E-03    20.234        .56692E-06** at limit **
   6  Prefactor     43.879        41.280       -.53872E-05   -.17253E-03
   7  Prefactor     .10000E-03    1.3780        .74355E-07** at limit **
   8  Prefactor     .10000E-03    13.308       -.33251E-06** at limit **
   9  Prefactor     13.757        24.925       -.16528E-05   -.50637E-04
  10  norm          2.1076        1.7680        .50890E-08    .33313E-04
  11  Prefactor     2.0088        5.0085       -.40728E-06   -.36671E-03
  12  norm          4.2338        2.8154        .80146E-06   -.28849E-02
  13  Prefactor     .10000E-03    29.059        .18960E-07** at limit **
  14  norm          27.931        11.433        .22883E-07   -.10138E-03
  15  norm          3.6030        2.0136       -.28519E-07   -.73878E-05
  16  norm          6.1687        16.306       -.41453E-06   -.15583E-04
  17  norm          .10000E-03    43.370        .56737E-06** at limit **
  18  Prefactor     53.832        77.541       -.81360E-05   -.93291E-04
  19  Normalizat    1.2315        .25009        .13349E-05    .38738E-05
  20  Prefactor     1.0097        .97236E-01   -.53058E-07    .13455E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.948258
  norm       = 0.266344
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7571
  norm       = 2.10764
  Prefactor  = 2.00877
  norm       = 4.23384
  Prefactor  = 0.0001
  norm       = 27.931
  norm       = 3.60304
  norm       = 6.16869
  norm       = 0.0001
  Prefactor  = 53.832
  Normalizat = 1.2315
  Prefactor  = 1.00973
 **********
 **   18 **HESSE 
 **********

 FCN=   8469.704     FROM HESSE     STATUS=OK           295 CALLS     2350 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .13861        .52081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .94826        2.3947        .21206E-03   -1.5513    
   3  norm          .26634        27.500        .38027E-02   -1.5605    
   4  norm          .10000E-03    .92360        .86310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.879        42.408        .60516E-04   -1.4382    
   7  Prefactor     .10000E-03    1.3859        .10547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.757        24.985        .10798E-03   -1.4966    
  10  norm          2.1076        1.7661        .10895E-03   -1.5418    
  11  Prefactor     2.0088        4.9894        .29193E-03   -1.5424    
  12  norm          4.2338        4.0178        .85785E-03   -1.5296    
  13  Prefactor     .10000E-03    29.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.931        11.445        .37904E-03   -1.4650    
  15  norm          3.6030        2.0138        .93122E-04   -1.5328    
  16  norm          6.1687        16.322        .16163E-03   -1.5211    
  17  norm          .10000E-03    43.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.832        78.916        .54662E-04   -1.4239    
  19  Normalizat    1.2315        .28892        .38810E-03   -.85635    
  20  Prefactor     1.0097        .11361        .17434E-03   -.92406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26284e-08
Minuit parameter uncertainties:
  1  5.37353e-08
  2  2.3949
  3  5.41434
  4  7.64424e-07
  5  2.43993e-05
  6  42.4375
  7  2.25409e-07
  8  2.04753e-05
  9  25.0039
  10  1.76611
  11  4.99044
  12  4.01802
  13  6.96521e-06
  14  11.4461
  15  2.01384
  16  16.3339
  17  5.14532e-05
  18  79.0696
  19  0.289301
  20  0.113634
Done.

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

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.048e-05  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.010e+00  1.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.232e+00  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/682692/likelihoodResults_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.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) = 8469.70444687
delta logL = -0.000357428278221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8469.70408939
delta logL = 5.19812601851e-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     '    1.8558       1.0000          .0000       10.000    
     3 'Normalizat'    1.2315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8469.704     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8778        .90712E-02** at limit **
   2  Index         1.8379        5.8834        .50000        .95001E-05
   3  Normalizat    1.2315        .44815E-02    .87641E-01    .33471E-04
   4  Prefactor     1.0097        .18534E-02    .43366E-01    .11461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83786
  Normalizat = 1.23151
  Prefactor  = 1.00973
 **********
 **   18 **HESSE 
 **********

 FCN=   8469.704     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8379        6.8923        .50000       -.68468    
   3  Normalizat    1.2315        .11019E-01    .38810E-03   -.85635    
   4  Prefactor     1.0097        .45661E-02    .17434E-03   -.92406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82927e-08
Minuit parameter uncertainties:
  1  8.71408e-05
  2  69.8707
  3  0.0110194
  4  0.00456607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682692': 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) = 8469.70408934
delta logL = 9.79252945399e-08

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  8.714e-05  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.838e+00  6.987e+01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  3.797e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  1.010e+00  4.566e-03  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.232e+00  1.102e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 235.906 4.869

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/682692/cmap_HighResolution_290908801_291168001_4FGL_J1543.6+0452_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-12 12:10:54.080649', job_id='682692', GAL2='1.01', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631473854.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='9.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='199' AND source_name='4FGL J1543.6+0452' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 12:10:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 682692: <4FGL_J1543.6+0452_daily_bin199> in cluster <slac> Done

Job <4FGL_J1543.6+0452_daily_bin199> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 11:55:27 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:56:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 11:56:47 2021
Terminated at Sun Sep 12 12:10:54 2021
Results reported at Sun Sep 12 12:10:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.6+0452_daily_bin199 235.906 4.8689 290908801 291168001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1543.6+0452 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            927 sec.

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

