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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1462
RA = 316.01, Dec = -35.7678
tmin = 618278401, tmax = 618537601
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='290074', job_status='RUN', time_executed='2021-09-26 02:05:51.858073', time_epoch_executed='1632647151.86' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290074

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290074/ft1_4FGL_J2104.0-3546_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290074/ft1_4FGL_J2104.0-3546_daily_bin1462.fits outfile=/scratch/kocevski/290074/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1462.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=618278401.0 tmax=618537601.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.77
user 3.52
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.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/290074/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1462.fits evtable="EVENTS" outfile="/scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/290074/ltcube_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.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/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits
.....................!
real 14.59
user 14.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/290074/ltcube_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.fits outfile=/scratch/kocevski/290074/expmap_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.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/290074/ltcube_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.fits
.....................!
real 191.00
user 186.07
sys 4.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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2104.0-3546 @ 316.01 -35.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits scfile=/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits outfile=/scratch/kocevski/290074/cmap_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.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=316.01 yref=-35.7678 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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits scfile=/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits outfile=/scratch/kocevski/290074/cmap_HighResolution_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.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=316.01 yref=-35.7678 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290074/Model_4FGL_J2104.0-3546_daily_bin1462.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/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits.....................!
real 68.60
user 67.29
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits', '/scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits', expMap='/scratch/kocevski/290074/expmap_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.fits', expCube='/scratch/kocevski/290074/ltcube_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290074/Model_4FGL_J2104.0-3546_daily_bin1462.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2104.0-3546'

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  6.791e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/290074/ft1_filtered_4FGL_J2104.0-3546_daily_bin1462.fits
Spacecraft file(s): /scratch/kocevski/290074/ft2_4FGL_J2104.0-3546_daily_bin1462.fits
Exposure map: /scratch/kocevski/290074/expmap_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.fits
Exposure cube: /scratch/kocevski/290074/ltcube_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290074/Model_4FGL_J2104.0-3546_daily_bin1462.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) = 7935.84735469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.1618       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3503       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.737       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.3000       1.0000         .10000E-03   10000.    
    10 'norm      '    9.2411       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.439       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14031E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .43634       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0142       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7935.771     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2183 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.882       -.46509E-05** at limit **
   2  norm          3.1601        6.0807        .69205E-06   -.10042E-02
   3  Prefactor     .10000E-03    17.072        .79346E-05** at limit **
   4  norm          3.3492        12.446        .80677E-06   -.41101E-03
   5  Prefactor     25.736        20.763       -.29527E-06   -.17998E-04
   6  Prefactor     .10000E-03    1.5847       -.17082E-07** at limit **
   7  Prefactor     .10000E-03    29.565        .14196E-05** at limit **
   8  Prefactor     .10000E-03    19.753       -.10061E-04** at limit **
   9  norm          7.2972        16.301        .20680E-06    .59693E-05
  10  norm          9.2407        2.8644       -.97690E-08   -.95896E-05
  11  Prefactor     .10000E-03    9.1170        .23425E-06** at limit **
  12  Prefactor     32.980        25.478       -.24080E-05   -.17322E-03
  13  Prefactor     .10000E-03    3.7075        .41873E-07** at limit **
  14  Prefactor     11.210        9.7803        .13092E-06   -.30042E-03
  15  Prefactor     .10000E-03    29.242        .50908E-06** at limit **
  16  norm          .10000E-03    3.7653       -.72125E-07** at limit **
  17  norm          .10000E-03    3.1790       -.27065E-07** at limit **
  18  Prefactor     13.436        9.5023       -.28386E-07   -.16287E-03
  19  Prefactor     .10000E-03    2.7931        .11025E-07** at limit **
  20  norm          .10052E-03    5.2786        .20229E-05** at limit **
  21  norm          .40025        3.0606       -.13896E-05    .68283E-03
  22  Normalizat    1.2856        .22808        .26739E-06   -.70031E-04
  23  Prefactor     1.0142        .10929       -.32185E-08   -.10827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 3.16012
  Prefactor  = 0.000100003
  norm       = 3.34923
  Prefactor  = 25.7361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.29715
  norm       = 9.2407
  Prefactor  = 0.0001
  Prefactor  = 32.9804
  Prefactor  = 0.0001
  Prefactor  = 11.2095
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4359
  Prefactor  = 0.0001
  norm       = 0.00010052
  norm       = 0.400253
  Normalizat = 1.2856
  Prefactor  = 1.01415
 **********
 **   18 **HESSE 
 **********

 FCN=   7935.771     FROM HESSE     STATUS=OK           366 CALLS     2549 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.1601        9.4755        .11397E-02   -1.5352    
   3  Prefactor     .10000E-03    17.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3492        14.719        .11055E-02   -1.5342    
   5  Prefactor     25.736        20.776        .78963E-04   -1.4693    
   6  Prefactor     .10000E-03    1.5880        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.2972        16.307        .14845E-03   -1.5168    
  10  norm          9.2407        2.8660        .81171E-04   -1.5100    
  11  Prefactor     .10000E-03    9.1406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.980        25.545        .69769E-04   -1.4559    
  13  Prefactor     .10000E-03    3.7252        .16749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.210        9.9271        .59826E-03   -1.5038    
  15  Prefactor     .10000E-03    29.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7714        .16882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2176        .15507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.436        9.5214        .10926E-03   -1.4975    
  19  Prefactor     .10000E-03    2.7953        .14538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10052E-03    46.797        .37603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .40025        18.024        .28739E-02   -1.5581    
  22  Normalizat    1.2856        .26901        .34059E-03   -.83997    
  23  Prefactor     1.0142        .12990        .18728E-03   -.92259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92589e-08
Minuit parameter uncertainties:
  1  0.000515439
  2  9.48001
  3  0.000449343
  4  14.0479
  5  20.7817
  6  6.59173e-07
  7  0.000104598
  8  0.000618716
  9  16.3168
  10  2.86602
  11  9.62732e-06
  12  25.5534
  13  5.0346e-07
  14  9.92858
  15  2.83743e-05
  16  1.83653e-06
  17  2.20375e-06
  18  9.5225
  19  2.85126e-07
  20  0.00987474
  21  5.37294
  22  0.269305
  23  0.129938
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  3.298e+01  2.555e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.014e+00  1.299e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.286e+00  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 316.010 -35.768
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.47e-05

TS (Fixed Index): 2.77
Ra Dec: 316.010 -35.768
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290074/likelihoodResults_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.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) = 7935.76226571
delta logL = 0.00896909364656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7935.75889456
delta logL = 0.0123402482504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.342       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2755       1.0000          .0000       10.000    
     3 'Normalizat'    1.2902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+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=   7935.759     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      248 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.333        31.449        .67411E-04    .10864E-03
   2  Index         2.2763        .59146        .87743E-02    .36364E-03
   3  Normalizat    1.2897        .25428        .34014E-03    .83192E-04
   4  Prefactor     1.0131        .12621        .18737E-03    .13888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.333
  Index      = 2.27631
  Normalizat = 1.28972
  Prefactor  = 1.01307
 **********
 **   18 **HESSE 
 **********

 FCN=   7935.759     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.333        30.706        .13482E-04   -1.4518    
   2  Index         2.2763        .57742        .17549E-02   -.57608    
   3  Normalizat    1.2897        .25437        .13605E-04   -.83874    
   4  Prefactor     1.0131        .12627        .37475E-04   -.92295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60784e-11
Minuit parameter uncertainties:
  1  30.7193
  2  0.579262
  3  0.254619
  4  0.126311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290074': 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) = 7935.75889144
delta logL = 0.0123433689168

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  3.533e+01  3.072e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.276e+00  5.793e-01  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.013e+00  1.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.290e+00  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 316.010 -35.768
Photon Index (Free Index): 2.28 +/- 0.58
Photon Flux (Free Index): 5.14e-08 +/- 4.76e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.83e-05

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/290074/cmap_HighResolution_618278401_618537601_4FGL_J2104.0-3546_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='2.02e-05', photon_flux_error='4.28e-08', dlogl='1.23e-02', energy_flux='1.89e-05', photon_flux2='5.14e-08', job_status='DONE', time_completed='2021-09-26 02:18:02.868466', photon_index_error2='0.58', photon_index2='2.28', ts='2.77', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.83e-05', EG='1.29', time_epoch_completed='1632647882.87', return_code='0', job_id='290074', GAL2='1.01', EG2='1.29', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.76e-08', ts2='2.79', photon_index='2.37' WHERE bin_id='1462' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 02:18:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 290074: <4FGL_J2104.0-3546_daily_bin1462> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1462> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 02:05:17 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 02:05:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 02:05:38 2021
Terminated at Sun Sep 26 02:18:03 2021
Results reported at Sun Sep 26 02:18:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1462 316.01 -35.7678 618278401 618537601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2104.0-3546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            766 sec.

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

