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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin760
RA = 16.2146, Dec = -24.2808
tmin = 436320001, tmax = 436579201
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='332223', job_status='RUN', time_executed='2021-08-13 11:43:53.838786', time_epoch_executed='1628880233.84' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332223/ft1_4FGL_J0104.8-2416_daily_bin760.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332223/ft1_4FGL_J0104.8-2416_daily_bin760.fits outfile=/scratch/kocevski/332223/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin760.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=436320001.0 tmax=436579201.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 8.44
user 5.05
sys 3.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.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/332223/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.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 3.57
user 0.35
sys 3.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/332223/ltcube_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.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/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits
.....................!
real 17.72
user 13.95
sys 3.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/332223/ltcube_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.fits outfile=/scratch/kocevski/332223/expmap_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.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/332223/ltcube_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.fits
.....................!
real 195.17
user 185.59
sys 9.15

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

Setting source of interest to:
4FGL J0104.8-2416 @ 16.2146 -24.2808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits scfile=/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits outfile=/scratch/kocevski/332223/cmap_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.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=16.2146 yref=-24.2808 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 3.64
user 0.39
sys 3.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits scfile=/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits outfile=/scratch/kocevski/332223/cmap_HighResolution_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.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=16.2146 yref=-24.2808 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 3.64
user 0.40
sys 3.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332223/Model_4FGL_J0104.8-2416_daily_bin760.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/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits......................!
real 30.43
user 24.77
sys 5.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits', '/scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits', expMap='/scratch/kocevski/332223/expmap_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.fits', expCube='/scratch/kocevski/332223/ltcube_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/332223/Model_4FGL_J0104.8-2416_daily_bin760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0104.8-2416'

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.411e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  5.562e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/332223/ft1_filtered_4FGL_J0104.8-2416_daily_bin760.fits
Spacecraft file(s): /scratch/kocevski/332223/ft2_4FGL_J0104.8-2416_daily_bin760.fits
Exposure map: /scratch/kocevski/332223/expmap_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.fits
Exposure cube: /scratch/kocevski/332223/ltcube_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/332223/Model_4FGL_J0104.8-2416_daily_bin760.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) = 2053.71431732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .47647E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17760E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .40373E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10954E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0344       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24795E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19513E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.758       1.0000         .10000E-03   10000.    
    12 'norm      '    .11449E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23193E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7528       1.0000         .10000E-03   10000.    
    17 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .29403E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68935E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .57883       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2053.604     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     1930 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.206       -.27869E-07** at limit **
   2  Prefactor     .10000E-03    17.482        .12064E-07** at limit **
   3  norm          .10000E-03    27.048       -.44405E-06** at limit **
   4  norm          .10000E-03    3.4905       -.48446E-07** at limit **
   5  Prefactor     .10000E-03    77.808        .13243E-05** at limit **
   6  norm          .10000E-03    8.9209       -.13454E-06** at limit **
   7  norm          .10000E-03    4.4370       -.15259E-06** at limit **
   8  Prefactor     5.0697        7.7552        .29597E-06    .24271E-03
   9  Prefactor     .10000E-03    17.706        .11591E-05** at limit **
  10  Prefactor     .10000E-03    10.047       -.46363E-06** at limit **
  11  Prefactor     13.713        25.288        .16647E-05    .48061E-03
  12  norm          .10011E-03    5.6110       -.26142E-05** at limit **
  13  norm          .10000E-03    2.8364        .17533E-05** at limit **
  14  Prefactor     16.834        24.109        .54938E-06    .13198E-03
  15  Prefactor     .10000E-03    10.243        .26440E-05** at limit **
  16  norm          2.7532        2.0329        .18349E-07    .13733E-03
  17  norm          .10000E-03    2.7051        .72959E-06** at limit **
  18  norm          .10001E-03    9.5610        .51058E-05** at limit **
  19  Prefactor     .10000E-03    26.103       -.20507E-06** at limit **
  20  Normalizat    .57878        .26243       -.31245E-05   -.22573E-03
  21  Prefactor     1.3777        .30704        .17010E-05   -.17679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.0697
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.7134
  norm       = 0.000100106
  norm       = 0.000100002
  Prefactor  = 16.8339
  Prefactor  = 0.000100002
  norm       = 2.75319
  norm       = 0.000100001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 0.578779
  Prefactor  = 1.37766
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.604     FROM HESSE     STATUS=OK           309 CALLS     2239 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.210        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    27.225        .21181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.4941        .82689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    78.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.9260        .13223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.4746        .93199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0697        7.7559        .15063E-03   -1.5258    
   9  Prefactor     .10000E-03    17.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.275        .14027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.713        20.752        .10799E-03   -1.4967    
  12  norm          .10011E-03    40.696        .14718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0889        .77294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.834        24.189        .97837E-04   -1.4887    
  15  Prefactor     .10000E-03    15.227        .24158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7532        2.0304        .53463E-04   -1.5376    
  17  norm          .10000E-03    5.5064        .13982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    12.363        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.116        .20988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .57878        .31467        .27069E-03   -1.0889    
  21  Prefactor     1.3777        .36803        .21728E-03   -.81026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57701e-09
Minuit parameter uncertainties:
  1  5.13671e-07
  2  1.52652e-05
  3  0.000173014
  4  3.49909e-06
  5  0.00122492
  6  3.48271e-05
  7  1.70036e-05
  8  7.7574
  9  0.000244885
  10  9.49967e-05
  11  20.7628
  12  0.00416467
  13  0.000160797
  14  24.2027
  15  0.000323202
  16  2.03044
  17  0.000111635
  18  0.000691024
  19  0.000108138
  20  0.31565
  21  0.368734
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  5.070e+00  7.757e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  5.562e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.378e+00  3.687e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  5.788e-01  3.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332223/likelihoodResults_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.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) = 2053.53633567
delta logL = 0.0677980019764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2053.53267162
delta logL = 0.0714620551366

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6716       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1158       1.0000          .0000       10.000    
     3 'Normalizat'    .58934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3687       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2053.533     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 22.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6724        7.6035        .31979E-05   -.99802E-03
   2  Index         2.1165        .85502       -.14433E-04   -.21750E-03
   3  Normalizat    .58938        .25561        .34949E-06    .56238E-04
   4  Prefactor     1.3686        .30485       -.40429E-06    .61388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.67239
  Index      = 2.11651
  Normalizat = 0.589382
  Prefactor  = 1.36863
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.533     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6724        8.3379        .15395E-03   -1.5232    
   2  Index         2.1165        1.1342        .10061E-01   -.61468    
   3  Normalizat    .58938        .30691        .26837E-03   -1.0844    
   4  Prefactor     1.3686        .36681        .21784E-03   -.81288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42696e-09
Minuit parameter uncertainties:
  1  8.33956
  2  1.14935
  3  0.307804
  4  0.367514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332223': 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) = 2053.53267133
delta logL = 0.0714623491558

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  5.672e+00  8.340e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.117e+00  1.149e+00  0.000e+00  1.000e+01 (-1.000e+00)
228        Scale:  5.562e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.369e+00  3.675e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  5.894e-01  3.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
Ra Dec: 16.215 -24.281

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/332223/cmap_HighResolution_436320001_436579201_4FGL_J0104.8-2416_daily_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-08-13 11:51:39.621618', job_id='332223', GAL2='1.37', fit_tolerance='1e-08', EG2='0.59', EG='0.58', time_epoch_completed='1628880699.62', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='7.15e-02', ts2='0.89', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='760' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 332223: <4FGL_J0104.8-2416_daily_bin760> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:40:55 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:42:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:42:57 2021
Terminated at Fri Aug 13 11:51:41 2021
Results reported at Fri Aug 13 11:51:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin760 16.2146 -24.2808 436320001 436579201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0104.8-2416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   507.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            646 sec.

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

