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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1410
RA = 316.01, Dec = -35.7678
tmin = 604800001, tmax = 605059201
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='289031', job_status='RUN', time_executed='2021-09-26 02:04:14.313401', time_epoch_executed='1632647054.31' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289031/ft1_4FGL_J2104.0-3546_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289031/ft1_4FGL_J2104.0-3546_daily_bin1410.fits outfile=/scratch/kocevski/289031/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1410.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.13
user 4.87
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.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/289031/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/289031/ltcube_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.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/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits
.....................!
real 14.39
user 14.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/289031/ltcube_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.fits outfile=/scratch/kocevski/289031/expmap_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.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/289031/ltcube_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.fits
.....................!
real 192.44
user 186.51
sys 4.54

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/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits scfile=/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits outfile=/scratch/kocevski/289031/cmap_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits scfile=/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits outfile=/scratch/kocevski/289031/cmap_HighResolution_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/289031/Model_4FGL_J2104.0-3546_daily_bin1410.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/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits.....................!
real 63.40
user 61.99
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits', '/scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits', expMap='/scratch/kocevski/289031/expmap_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.fits', expCube='/scratch/kocevski/289031/ltcube_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/289031/Model_4FGL_J2104.0-3546_daily_bin1410.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/289031/ft1_filtered_4FGL_J2104.0-3546_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/289031/ft2_4FGL_J2104.0-3546_daily_bin1410.fits
Exposure map: /scratch/kocevski/289031/expmap_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.fits
Exposure cube: /scratch/kocevski/289031/ltcube_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/289031/Model_4FGL_J2104.0-3546_daily_bin1410.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) = 7353.95396619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.120       1.0000         .10000E-03   10000.    
     2 'norm      '    11.830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.304       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8235       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    42.581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.514       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.944       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5698       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84933       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=   7353.948     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2539 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.116        45.146       -.76491E-06    .21071E-05
   2  norm          11.828        13.270        .41257E-06    .26391E-05
   3  Prefactor     18.299        53.034       -.51852E-05   -.82416E-05
   4  norm          .10000E-03    7.0439        .22204E-07** at limit **
   5  Prefactor     .10000E-03    36.349       -.93927E-05** at limit **
   6  Prefactor     .10000E-03    9.9887        .53828E-06** at limit **
   7  Prefactor     2.6569        283.14       -.33258E-04   -.16133E-05
   8  Prefactor     .10000E-03    40.297        .16322E-04** at limit **
   9  norm          .10000E-03    9.7075       -.29360E-06** at limit **
  10  norm          42.582        5.6619       -.56973E-06   -.46407E-03
  11  Prefactor     16.509        25.242        .56522E-05    .27369E-04
  12  Prefactor     .10000E-03    14.125        .26528E-06** at limit **
  13  Prefactor     1.4050        2.2342        .93016E-06   -.24285E-02
  14  Prefactor     .19202        6.9586        .22546E-05   -.29167E-03
  15  Prefactor     .10000E-03    52.233       -.88454E-05** at limit **
  16  norm          .10000E-03    3.2545       -.35749E-07** at limit **
  17  norm          19.941        7.5468       -.48658E-05   -.40363E-03
  18  Prefactor     .10000E-03    5.2141        .46439E-07** at limit **
  19  Prefactor     .10000E-03    3.9426        .14612E-07** at limit **
  20  norm          .10000E-03    5.5441        .54749E-07** at limit **
  21  norm          .10000E-03    1.4180        .16524E-07** at limit **
  22  Normalizat    1.5698        .25717        .22072E-05   -.18148E-03
  23  Prefactor     .84936        .11951       -.46649E-06    .35895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.1157
  norm       = 11.8283
  Prefactor  = 18.2993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65692
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 42.582
  Prefactor  = 16.5092
  Prefactor  = 0.0001
  Prefactor  = 1.40501
  Prefactor  = 0.192023
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 19.9414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.56977
  Prefactor  = 0.849359
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.948     FROM HESSE     STATUS=OK           368 CALLS     2907 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.116        45.196        .50911E-04   -1.4130    
   2  norm          11.828        13.285        .11647E-03   -1.5020    
   3  Prefactor     18.299        53.025        .93616E-04   -1.4852    
   4  norm          .10000E-03    7.0468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6569        284.81        .24204E-03   -1.5382    
   8  Prefactor     .10000E-03    40.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.7123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          42.582        5.6735        .61434E-04   -1.4402    
  11  Prefactor     16.509        25.336        .98559E-04   -1.4895    
  12  Prefactor     .10000E-03    14.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4050        8.9303        .18271E-02   -1.5471    
  14  Prefactor     .19202        11.799        .70084E-01   -1.5620    
  15  Prefactor     .10000E-03    52.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2568        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.941        7.5785        .44843E-03   -1.4815    
  18  Prefactor     .10000E-03    5.2421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9506        .16629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.6297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4197        .99726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5698        .30666        .34009E-03   -.75836    
  23  Prefactor     .84936        .14174        .21009E-03   -.97934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07869e-08
Minuit parameter uncertainties:
  1  45.2211
  2  13.2885
  3  53.1624
  4  2.97333e-06
  5  1.37424e-05
  6  2.25691e-05
  7  55.2881
  8  0.000144259
  9  1.07783e-05
  10  5.67356
  11  25.3526
  12  1.3116e-05
  13  7.08568
  14  3.01021
  15  0.000556102
  16  1.19382e-06
  17  7.57887
  18  4.95911e-06
  19  1.4443e-05
  20  6.75532e-06
  21  9.45062e-07
  22  0.307025
  23  0.141796
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  1.312e-05  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:  8.494e-01  1.418e-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.570e+00  3.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 316.010 -35.768
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289031/likelihoodResults_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.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) = 7353.94802198
delta logL = -0.000336779007739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7353.94768519
delta logL = 4.412868293e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3610       1.0000          .0000       10.000    
     3 'Normalizat'    1.5698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84936       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=   7353.948     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    215.64        .18142E-02** at limit **
   2  Index         2.3282        6.0562        .50000        .33090E-05
   3  Normalizat    1.5698        .26019E-01    .34009E-03   -.16781E-04
   4  Prefactor     .84936        .12367E-01    .21009E-03   -.20726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100291
  Index      = 2.32823
  Normalizat = 1.56978
  Prefactor  = 0.849357
 **********
 **   18 **HESSE 
 **********

 FCN=   7353.948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10029E-03    910.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3282        6.1318        .50000       -.56374    
   3  Normalizat    1.5698        .57648E-01    .13604E-04   -.75836    
   4  Prefactor     .84936        .27400E-01    .84034E-05   -.97934    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34893e-09
Minuit parameter uncertainties:
  1  0.0330948
  2  1497.61
  3  0.0576506
  4  0.0274004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289031': 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) = 7353.94768517
delta logL = 2.49010554398e-08

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.003e-04  3.309e-02  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.328e+00  1.498e+03  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:  8.494e-01  2.740e-02  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.570e+00  5.765e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 316.010 -35.768

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/289031/cmap_HighResolution_604800001_605059201_4FGL_J2104.0-3546_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-26 02:16:00.849757', job_id='289031', GAL2='0.85', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1632647760.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1410' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 02:16:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 289031: <4FGL_J2104.0-3546_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1410> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 26 02:00:56 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 02:02:57 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:02:57 2021
Terminated at Sun Sep 26 02:16:01 2021
Results reported at Sun Sep 26 02:16:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1410 316.01 -35.7678 604800001 605059201 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 :                                   698.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            905 sec.

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

