/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 76 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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1601
RA = 208.718, Dec = -10.6932
tmin = 654307201, tmax = 654566401
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='542560', job_status='RUN', time_executed='2021-09-29 00:17:01.714740', time_epoch_executed='1632899821.71' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542560/ft1_4FGL_J1354.8-1041_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542560/ft1_4FGL_J1354.8-1041_daily_bin1601.fits outfile=/scratch/kocevski/542560/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1601.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=654307201.0 tmax=654566401.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.21
user 3.97
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.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/542560/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.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.53
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/542560/ltcube_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.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/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits
.....................!
real 12.01
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/542560/ltcube_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.fits outfile=/scratch/kocevski/542560/expmap_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.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/542560/ltcube_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.fits
.....................!
real 190.33
user 185.40
sys 4.53

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

Setting source of interest to:
4FGL J1354.8-1041 @ 208.718 -10.6932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits scfile=/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits outfile=/scratch/kocevski/542560/cmap_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.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=208.718 yref=-10.6932 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits scfile=/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits outfile=/scratch/kocevski/542560/cmap_HighResolution_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.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=208.718 yref=-10.6932 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542560/Model_4FGL_J1354.8-1041_daily_bin1601.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/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits.....................!
real 71.50
user 70.02
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits', '/scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits', expMap='/scratch/kocevski/542560/expmap_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.fits', expCube='/scratch/kocevski/542560/ltcube_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542560/Model_4FGL_J1354.8-1041_daily_bin1601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1354.8-1041'

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  2.768e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.271e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542560/ft1_filtered_4FGL_J1354.8-1041_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/542560/ft2_4FGL_J1354.8-1041_daily_bin1601.fits
Exposure map: /scratch/kocevski/542560/expmap_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.fits
Exposure cube: /scratch/kocevski/542560/ltcube_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542560/Model_4FGL_J1354.8-1041_daily_bin1601.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) = 9247.15012321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21643E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7436       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2449       1.0000         .10000E-03   10000.    
     7 'norm      '    30.162       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0673       1.0000         .10000E-03   10000.    
     9 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.7645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9200       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6237       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3087       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92950       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9246.980     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2191 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.808        11.582        .99576E-07   -.31016E-04
   2  Prefactor     .10000E-03    2.7216       -.89222E-08** at limit **
   3  Prefactor     23.010        8.6848       -.55670E-07   -.44958E-04
   4  Prefactor     .10000E-03    45.518       -.20012E-05** at limit **
   5  norm          4.7436        1.7578        .30212E-07   -.68850E-04
   6  norm          1.2448        4.0207        .23955E-05   -.15281E-03
   7  norm          30.167        10.247       -.72017E-06   -.19558E-03
   8  Prefactor     1.0662        14.018        .34562E-05   -.16244E-03
   9  norm          .10000E-03    27.879       -.98990E-07** at limit **
  10  Prefactor     .10000E-03    13.479       -.39919E-06** at limit **
  11  norm          6.7640        4.6863       -.18937E-06   -.14017E-03
  12  Prefactor     .10000E-03    2.3015       -.66196E-08** at limit **
  13  Prefactor     .10000E-03    11.546        .32664E-07** at limit **
  14  Prefactor     1.8955        156.16       -.11050E-04   -.62455E-04
  15  norm          .10000E-03    2.0404        .12044E-07** at limit **
  16  norm          3.6238        2.3334        .85580E-07   -.89220E-04
  17  norm          .10000E-03    7.4193        .44853E-07** at limit **
  18  norm          .10000E-03    1.5624        .17780E-07** at limit **
  19  Prefactor     .10000E-03    11.503        .98722E-07** at limit **
  20  Prefactor     .10000E-03    6.0207        .36985E-07** at limit **
  21  norm          .10000E-03    3.6299        .27874E-07** at limit **
  22  Normalizat    1.3086        .20136       -.74879E-06    .77255E-05
  23  Prefactor     .92951        .10478        .11809E-06   -.76225E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8084
  Prefactor  = 0.0001
  Prefactor  = 23.0101
  Prefactor  = 0.000100002
  norm       = 4.74362
  norm       = 1.24475
  norm       = 30.1666
  Prefactor  = 1.06621
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.76403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.89546
  norm       = 0.0001
  norm       = 3.62376
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.30861
  Prefactor  = 0.929507
 **********
 **   18 **HESSE 
 **********

 FCN=   9246.980     FROM HESSE     STATUS=OK           368 CALLS     2559 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.808        11.582        .47454E-03   -1.4864    
   2  Prefactor     .10000E-03    2.7279        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.010        8.6976        .83503E-04   -1.4748    
   4  Prefactor     .10000E-03    47.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7436        1.7630        .73988E-04   -1.5272    
   6  norm          1.2448        4.0436        .28427E-03   -1.5485    
   7  norm          30.167        10.053        .72953E-04   -1.4609    
   8  Prefactor     1.0662        14.207        .47144E-03   -1.5501    
   9  norm          .10000E-03    28.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.7640        4.6631        .15427E-03   -1.5188    
  12  Prefactor     .10000E-03    2.3398        .14235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8955        173.40        .29989E-03   -1.5433    
  15  norm          .10000E-03    2.0495        .13413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6238        2.3335        .11254E-03   -1.5327    
  17  norm          .10000E-03    7.4976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5670        .11737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6358        .17893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3086        .23669        .32284E-03   -.83310    
  23  Prefactor     .92951        .12344        .19920E-03   -.95118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84271e-10
Minuit parameter uncertainties:
  1  11.583
  2  1.99086e-06
  3  8.69807
  4  0.000573292
  5  1.763
  6  4.04446
  7  10.0539
  8  7.78592
  9  3.00863e-05
  10  3.97556e-05
  11  4.66337
  12  8.14183e-06
  13  4.13982e-07
  14  36.3667
  15  1.99014e-06
  16  2.3336
  17  1.22742e-06
  18  9.59626e-08
  19  2.1423e-06
  20  7.43757e-07
  21  2.28753e-07
  22  0.236889
  23  0.123474
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  1.990e-06  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.271e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.295e-01  1.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.309e+00  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 208.718 -10.693
Photon Flux Upper Limit: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542560/likelihoodResults_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9246.98280019
delta logL = -0.00231836932289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9246.97914989
delta logL = 0.0013319265563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98557E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   9246.979     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      364 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98697E-02    .98994        .65625E-03    .10050E-02
   2  alpha         5.0000        2.7318        .18569    ** at limit **
   3  Normalizat    1.3044        .24715        .32330E-03    .37046E-03
   4  Prefactor     .93085        .12511        .19907E-03    .57565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00986967
  alpha      = 5
  Normalizat = 1.30437
  Prefactor  = 0.93085
 **********
 **   18 **HESSE 
 **********

 FCN=   9246.979     FROM HESSE     STATUS=OK            25 CALLS      389 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98697E-02    .96297        .26250E-04   -1.5688    
   2  alpha         5.0000        2.6411        .74277E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3044        .24192        .64659E-04   -.83436    
   4  Prefactor     .93085        .12415        .79629E-05   -.95071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22923e-09
Minuit parameter uncertainties:
  1  0.193992
  2  0.0030286
  3  0.24213
  4  0.124187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542560': 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) = 9246.97914987
delta logL = 0.0013319468726

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  9.870e-03  1.940e-01  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  5.000e+00  3.029e-03  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  1.844e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.406e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.308e-01  1.242e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.304e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 208.718 -10.693

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/542560/cmap_HighResolution_654307201_654566401_4FGL_J1354.8-1041_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-05', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-09-29 00:29:35.097780', job_id='542560', GAL2='0.93', fit_tolerance='1e-08', EG2='1.30', EG='1.31', time_epoch_completed='1632900575.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.33e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1601' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:29:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 542560: <4FGL_J1354.8-1041_daily_bin1601> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:15:34 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:15:35 2021
Terminated at Wed Sep 29 00:29:35 2021
Results reported at Wed Sep 29 00:29:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1601 208.718 -10.6932 654307201 654566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1354.8-1041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            841 sec.

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

