/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 154 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 = 7433
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1354.8-1041_daily_bin1596
RA = 208.718, Dec = -10.6932
tmin = 653011201, tmax = 653270401
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='303976', job_status='RUN', time_executed='2021-09-14 00:34:16.014049', time_epoch_executed='1631604856.01' WHERE source_name='4FGL J1354.8-1041' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303976/ft1_4FGL_J1354.8-1041_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303976/ft1_4FGL_J1354.8-1041_daily_bin1596.fits outfile=/scratch/kocevski/303976/ft1_filteredMKT_4FGL_J1354.8-1041_daily_bin1596.fits ra=208.718 dec=-10.6932 rad=12.0 tmin=653011201.0 tmax=653270401.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.16
user 2.94
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/303976/ltcube_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.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/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits
.....................!
real 15.25
user 14.90
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/303976/ltcube_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.fits outfile=/scratch/kocevski/303976/expmap_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.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/303976/ltcube_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.fits
.....................!
real 191.46
user 186.69
sys 4.10

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/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits scfile=/scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits outfile=/scratch/kocevski/303976/cmap_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits scfile=/scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits outfile=/scratch/kocevski/303976/cmap_HighResolution_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.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.59
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/303976/Model_4FGL_J1354.8-1041_daily_bin1596.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/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits.....................!
real 58.78
user 57.39
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits', '/scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits', expMap='/scratch/kocevski/303976/expmap_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.fits', expCube='/scratch/kocevski/303976/ltcube_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/303976/Model_4FGL_J1354.8-1041_daily_bin1596.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/303976/ft1_filtered_4FGL_J1354.8-1041_daily_bin1596.fits
Spacecraft file(s): /scratch/kocevski/303976/ft2_4FGL_J1354.8-1041_daily_bin1596.fits
Exposure map: /scratch/kocevski/303976/expmap_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.fits
Exposure cube: /scratch/kocevski/303976/ltcube_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/303976/Model_4FGL_J1354.8-1041_daily_bin1596.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) = 7279.14755818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79848E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .24189E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0218       1.0000         .10000E-03   10000.    
     7 'norm      '    8.4598       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    24.265       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8362       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14498E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1620       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4373       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0570       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5706       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79735       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=   7279.139     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     3002 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4467        .13895E-07** at limit **
   2  Prefactor     2.9207        11.851       -.84377E-06    .67727E-04
   3  Prefactor     .10000E-03    16.875       -.13033E-05** at limit **
   4  Prefactor     .10059E-03    31.476       -.18144E-05** at limit **
   5  norm          .10008E-03    .75580        .59214E-07** at limit **
   6  norm          6.0257        6.4640        .61194E-06   -.19695E-03
   7  norm          8.4590        8.1077        .45158E-07    .89221E-04
   8  Prefactor     .10000E-03    5.2797        .19729E-07** at limit **
   9  norm          24.257        34.869        .34350E-05    .47345E-05
  10  Prefactor     .10000E-03    7.5584        .18716E-07** at limit **
  11  norm          3.8361        3.5613        .54176E-07    .42710E-04
  12  Prefactor     .10000E-03    2.8186       -.50557E-08** at limit **
  13  Prefactor     2.8629        38.583       -.68330E-05   -.81056E-05
  14  Prefactor     .10000E-03    22.398        .75454E-06** at limit **
  15  norm          .10000E-03    3.7508        .15387E-06** at limit **
  16  norm          5.1617        2.5016       -.62204E-07   -.31913E-04
  17  norm          5.4366        11.604       -.19160E-05   -.15840E-04
  18  norm          2.0558        2.6082       -.61743E-07   -.16845E-02
  19  Prefactor     18.570        14.495        .72256E-05    .54782E-04
  20  Prefactor     .10000E-03    14.676        .12628E-05** at limit **
  21  norm          .10000E-03    11.975       -.78648E-06** at limit **
  22  Normalizat    1.5707        .23158       -.14994E-06    .13614E-03
  23  Prefactor     .79737        .11229       -.37543E-06    .15700E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.92068
  Prefactor  = 0.0001
  Prefactor  = 0.000100587
  norm       = 0.000100082
  norm       = 6.02574
  norm       = 8.45905
  Prefactor  = 0.0001
  norm       = 24.2566
  Prefactor  = 0.0001
  norm       = 3.83614
  Prefactor  = 0.0001
  Prefactor  = 2.86287
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.16172
  norm       = 5.43655
  norm       = 2.05583
  Prefactor  = 18.5699
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.57068
  Prefactor  = 0.79737
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.139     FROM HESSE     STATUS=OK           390 CALLS     3392 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4502        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9207        11.712        .23776E-03   -1.5366    
   3  Prefactor     .10000E-03    17.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10059E-03    45.652        .90361E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10008E-03    4.3901        .23447E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0257        7.0347        .78675E-03   -1.5217    
   7  norm          8.4590        8.0939        .68913E-03   -1.5126    
   8  Prefactor     .10000E-03    5.2957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          24.257        34.859        .81319E-04   -1.4723    
  10  Prefactor     .10000E-03    7.6337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8361        3.5615        .15020E-03   -1.5316    
  12  Prefactor     .10000E-03    2.9193        .27941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8629        38.799        .24022E-03   -1.5370    
  14  Prefactor     .10000E-03    22.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.975        .31938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1617        2.5143        .90370E-04   -1.5254    
  17  norm          5.4366        11.606        .17233E-03   -1.5242    
  18  norm          2.0558        5.7348        .14408E-02   -1.5421    
  19  Prefactor     18.570        14.493        .92951E-04   -1.4846    
  20  Prefactor     .10000E-03    14.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5707        .28279        .29881E-03   -.75811    
  23  Prefactor     .79737        .13477        .20347E-03   -.99825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73613e-09
Minuit parameter uncertainties:
  1  7.43837e-07
  2  11.7011
  3  3.26431e-05
  4  0.0103624
  5  0.00119997
  6  7.03562
  7  8.09497
  8  2.17709e-06
  9  34.8879
  10  5.35112e-06
  11  3.56167
  12  4.68461e-07
  13  21.0949
  14  5.18181e-06
  15  9.707e-05
  16  2.51437
  17  11.6104
  18  5.73631
  19  14.4954
  20  3.90612e-06
  21  1.74125e-06
  22  0.283074
  23  0.134829
Done.

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

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  9.707e-05  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:  7.974e-01  1.348e-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.571e+00  2.831e-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: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303976/likelihoodResults_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.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) = 7279.13955914
delta logL = -0.000432050246673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7279.13913493
delta logL = -7.83618997957e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14375E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2380       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79779       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7279.139     FROM MIGRAD    STATUS=FAILED        91 CALLS      254 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10158E-03    686.23        .32376E-02** at limit **
   2  alpha         2.1078        3.7412        .16576        .29106E-05
   3  Normalizat    1.5707        .46529E-01    .29881E-03    .10535E-03
   4  Prefactor     .79737        .23676E-01    .20347E-03    .16203E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7279.139     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      395 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10158E-03    686.23        .56773E-03** at limit **
   2  alpha         2.1078        3.7412        .49144E-04    .29106E-05
   3  Normalizat    1.5707        .46529E-01    .11434E-05    .10535E-03
   4  Prefactor     .79737        .23676E-01    .72105E-06    .16203E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7279.139     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      444 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.702        .64751E-03** at limit **
   2  alpha         2.0634        2.8844        .66305E-01   -.60011E-08
   3  Normalizat    1.5707        .25656        .59763E-04   -.19951E-03
   4  Prefactor     .79737        .13059        .81389E-05   -.28663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.06343
  Normalizat = 1.57068
  Prefactor  = 0.79737
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.139     FROM HESSE     STATUS=OK            23 CALLS      467 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.674        .12950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0634        3.8797        .26522E-02   -.17553    
   3  Normalizat    1.5707        .25662        .11953E-04   -.75811    
   4  Prefactor     .79737        .13062        .16278E-05   -.99825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46153e-11
Minuit parameter uncertainties:
  1  2.0343e-05
  2  195.835
  3  0.256836
  4  0.130675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303976': 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) = 7279.13912652
delta logL = 5.73370016355e-07

Extracting fit parameters...

4FGL J1354.8-1041
   Spectrum: LogParabola
272         norm:  1.000e-04  2.034e-05  1.000e-04  1.000e+04 ( 1.000e-12)
273        alpha:  2.063e+00  1.958e+02  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:  7.974e-01  1.307e-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.571e+00  2.568e-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/303976/cmap_HighResolution_653011201_653270401_4FGL_J1354.8-1041_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-14 00:46:23.661568', job_id='303976', GAL2='0.80', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1631605583.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1596' AND source_name='4FGL J1354.8-1041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:46:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 303976: <4FGL_J1354.8-1041_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1354.8-1041_daily_bin1596> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 14 00:30:26 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:31:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:31:34 2021
Terminated at Tue Sep 14 00:46:24 2021
Results reported at Tue Sep 14 00:46:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1354.8-1041_daily_bin1596 208.718 -10.6932 653011201 653270401 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 :                                   728.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            958 sec.

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

