/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 145 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1543.6+0452_daily_bin164
RA = 235.906, Dec = 4.8689
tmin = 281836801, tmax = 282096001
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='682641', job_status='RUN', time_executed='2021-09-12 11:58:59.131132', time_epoch_executed='1631473139.13' WHERE source_name='4FGL J1543.6+0452' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682641/ft1_4FGL_J1543.6+0452_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682641/ft2_4FGL_J1543.6+0452_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682641/ft1_4FGL_J1543.6+0452_daily_bin164.fits outfile=/scratch/kocevski/682641/ft1_filteredMKT_4FGL_J1543.6+0452_daily_bin164.fits ra=235.906 dec=4.8689 rad=12.0 tmin=281836801.0 tmax=282096001.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.98
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682641/ft2_4FGL_J1543.6+0452_daily_bin164.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/682641/ft1_filteredMKT_4FGL_J1543.6+0452_daily_bin164.fits evtable="EVENTS" outfile="/scratch/kocevski/682641/ft1_filtered_4FGL_J1543.6+0452_daily_bin164.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.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682641/ft1_filtered_4FGL_J1543.6+0452_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/682641/ft2_4FGL_J1543.6+0452_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/682641/ltcube_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.fits outfile=/scratch/kocevski/682641/expmap_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.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/682641/ltcube_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.fits
.....................!
real 193.06
user 187.93
sys 4.69

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/682641/ft1_filtered_4FGL_J1543.6+0452_daily_bin164.fits scfile=/scratch/kocevski/682641/ft2_4FGL_J1543.6+0452_daily_bin164.fits outfile=/scratch/kocevski/682641/cmap_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682641/ft1_filtered_4FGL_J1543.6+0452_daily_bin164.fits scfile=/scratch/kocevski/682641/ft2_4FGL_J1543.6+0452_daily_bin164.fits outfile=/scratch/kocevski/682641/cmap_HighResolution_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682641/ft1_filtered_4FGL_J1543.6+0452_daily_bin164.fits', '/scratch/kocevski/682641/ft2_4FGL_J1543.6+0452_daily_bin164.fits', expMap='/scratch/kocevski/682641/expmap_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.fits', expCube='/scratch/kocevski/682641/ltcube_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682641/Model_4FGL_J1543.6+0452_daily_bin164.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/682641/ft1_filtered_4FGL_J1543.6+0452_daily_bin164.fits
Spacecraft file(s): /scratch/kocevski/682641/ft2_4FGL_J1543.6+0452_daily_bin164.fits
Exposure map: /scratch/kocevski/682641/expmap_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.fits
Exposure cube: /scratch/kocevski/682641/ltcube_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682641/Model_4FGL_J1543.6+0452_daily_bin164.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) = 7968.12771807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87707       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2193       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4457       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95436       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9512       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.587       1.0000         .10000E-03   10000.    
    14 'norm      '    20.568       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2727       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6231       1.0000         .10000E-03   10000.    
    17 'norm      '    78.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.148       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5663       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84622       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=   7968.118     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     2012 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87719        .26507       -.16619E-07   -.10418E-03
   2  norm          1.2197        2.7224        .59639E-06    .21578E-04
   3  norm          3.4456        4.2778        .23361E-08   -.67169E-06
   4  norm          .10000E-03    2.7325       -.16060E-06** at limit **
   5  Prefactor     2.7882        238.27       -.17894E-05   -.91318E-05
   6  Prefactor     .10000E-03    21.489        .30240E-06** at limit **
   7  Prefactor     3.8286        5.9595       -.18237E-06   -.14185E-03
   8  Prefactor     .10000E-03    18.710       -.94304E-07** at limit **
   9  Prefactor     .10000E-03    17.263        .65782E-07** at limit **
  10  norm          .10000E-03    .90772        .74191E-07** at limit **
  11  Prefactor     .95454        4.2363        .28769E-05    .17014E-05
  12  norm          2.9519        3.8292       -.30965E-07   -.12800E-03
  13  Prefactor     25.510        53.023       -.72765E-06   -.49912E-04
  14  norm          20.572        10.748       -.12217E-07   -.15393E-04
  15  norm          2.2730        1.4875       -.31983E-07   -.20100E-04
  16  norm          1.6150        7.8421        .16651E-05    .38075E-05
  17  norm          78.051        90.844        .13681E-06   -.46349E-05
  18  Prefactor     29.130        79.796        .44946E-06   -.79615E-05
  19  Normalizat    1.5658        .25694        .98834E-06   -.19140E-03
  20  Prefactor     .84646        .97362E-01   -.13578E-05   -.78206E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.877188
  norm       = 1.21972
  norm       = 3.44562
  norm       = 0.0001
  Prefactor  = 2.78817
  Prefactor  = 0.0001
  Prefactor  = 3.82863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.954541
  norm       = 2.95188
  Prefactor  = 25.5105
  norm       = 20.5718
  norm       = 2.27304
  norm       = 1.61502
  norm       = 78.0514
  Prefactor  = 29.13
  Normalizat = 1.56582
  Prefactor  = 0.846458
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.118     FROM HESSE     STATUS=OK           295 CALLS     2307 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87719        .26557        .24299E-04   -1.5521    
   2  norm          1.2197        2.7245        .20796E-03   -1.5487    
   3  norm          3.4456        4.2740        .20078E-03   -1.5337    
   4  norm          .10000E-03    2.7561        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7882        241.10        .24219E-03   -1.5374    
   6  Prefactor     .10000E-03    21.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8286        5.9351        .20628E-03   -1.5317    
   8  Prefactor     .10000E-03    18.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .91432        .83052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .95454        4.3041        .34687E-03   -1.5513    
  12  norm          2.9519        3.8088        .19044E-03   -1.5364    
  13  Prefactor     25.510        53.227        .79193E-04   -1.4697    
  14  norm          20.572        10.775        .88317E-04   -1.4801    
  15  norm          2.2730        1.4893        .85260E-04   -1.5406    
  16  norm          1.6150        7.7893        .33214E-03   -1.5454    
  17  norm          78.051        90.864        .22726E-03   -1.3939    
  18  Prefactor     29.130        79.870        .74208E-04   -1.4628    
  19  Normalizat    1.5658        .29285        .35653E-03   -.75945    
  20  Prefactor     .84646        .10890        .18306E-03   -.98038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84764e-10
Minuit parameter uncertainties:
  1  0.265574
  2  2.72478
  3  4.27434
  4  4.09273e-07
  5  52.0724
  6  1.03461e-05
  7  5.93599
  8  5.57514e-06
  9  4.62294e-06
  10  6.47972e-07
  11  4.05412
  12  3.8091
  13  53.3266
  14  10.7761
  15  1.4893
  16  7.09488
  17  91.0262
  18  80.1648
  19  0.293172
  20  0.108933
Done.

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

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  5.575e-06  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:  8.465e-01  1.089e-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.566e+00  2.932e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682641/likelihoodResults_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.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) = 7968.11790118
delta logL = -0.000254103738371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7968.11764941
delta logL = -2.32695219893e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19916E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9733       1.0000          .0000       10.000    
     3 'Normalizat'    1.5658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84646       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=   7968.118     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.19        .90712E-02** at limit **
   2  Index         1.9914        6.1227        .50000       -.77104E-05
   3  Normalizat    1.5658        .15583E-01    .80552E-01    .26519E-04
   4  Prefactor     .84646        .61520E-02    .44319E-01    .31536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99139
  Normalizat = 1.56583
  Prefactor  = 0.846457
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.118     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1511.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9914        6.8439        .50000       -.64565    
   3  Normalizat    1.5658        .65005E-01    .35652E-03   -.75945    
   4  Prefactor     .84646        .25691E-01    .18306E-03   -.98038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63513e-09
Minuit parameter uncertainties:
  1  0.00114737
  2  35.6039
  3  0.0650085
  4  0.0256918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682641': 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) = 7968.11764689
delta logL = 1.92091647477e-07

Extracting fit parameters...

4FGL J1543.6+0452
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.147e-03  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  1.991e+00  3.560e+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:  8.465e-01  2.569e-02  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.566e+00  6.501e-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/682641/cmap_HighResolution_281836801_282096001_4FGL_J1543.6+0452_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-12 12:09:24.804712', job_id='682641', GAL2='0.85', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1631473764.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='164' AND source_name='4FGL J1543.6+0452' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 12:09:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 682641: <4FGL_J1543.6+0452_daily_bin164> in cluster <slac> Done

Job <4FGL_J1543.6+0452_daily_bin164> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 11:55:24 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 11:56:24 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:24 2021
Terminated at Sun Sep 12 12:09:25 2021
Results reported at Sun Sep 12 12:09:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1543.6+0452_daily_bin164 235.906 4.8689 281836801 282096001 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 :                                   623.33 sec.
    Max Memory :                                 1002 MB
    Average Memory :                             292.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            841 sec.

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

