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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1180
RA = 16.2146, Dec = -24.2808
tmin = 545184001, tmax = 545443201
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='334904', job_status='RUN', time_executed='2021-08-13 11:55:24.734263', time_epoch_executed='1628880924.73' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334904/ft1_4FGL_J0104.8-2416_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334904/ft1_4FGL_J0104.8-2416_daily_bin1180.fits outfile=/scratch/kocevski/334904/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1180.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=545184001.0 tmax=545443201.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 7.80
user 3.80
sys 3.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.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/334904/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1180.fits evtable="EVENTS" outfile="/scratch/kocevski/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.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 4.53
user 0.34
sys 4.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/334904/ltcube_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.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/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits
.....................!
real 17.72
user 13.23
sys 4.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/334904/ltcube_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.fits outfile=/scratch/kocevski/334904/expmap_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.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/334904/ltcube_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.fits
.....................!
real 198.22
user 186.47
sys 10.66

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/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits scfile=/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits outfile=/scratch/kocevski/334904/cmap_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.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 4.44
user 0.38
sys 3.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits scfile=/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits outfile=/scratch/kocevski/334904/cmap_HighResolution_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.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 4.48
user 0.39
sys 3.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334904/Model_4FGL_J0104.8-2416_daily_bin1180.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/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits.....................!
real 38.71
user 32.65
sys 5.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits', '/scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits', expMap='/scratch/kocevski/334904/expmap_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.fits', expCube='/scratch/kocevski/334904/ltcube_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/334904/Model_4FGL_J0104.8-2416_daily_bin1180.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/334904/ft1_filtered_4FGL_J0104.8-2416_daily_bin1180.fits
Spacecraft file(s): /scratch/kocevski/334904/ft2_4FGL_J0104.8-2416_daily_bin1180.fits
Exposure map: /scratch/kocevski/334904/expmap_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.fits
Exposure cube: /scratch/kocevski/334904/ltcube_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/334904/Model_4FGL_J0104.8-2416_daily_bin1180.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) = 3298.68598409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    23.264       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.924       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19279E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5784       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.9854       1.0000         .10000E-03   10000.    
    13 'norm      '    .11443E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6146       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13038E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99381       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93181       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.

 FCN=   3298.649     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     1880 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.769        .90712E-02** at limit **
   2  Prefactor     .10000E-03    11.466        .90712E-02** at limit **
   3  norm          23.265        19.025        .20762E-02   -.50355E-04
   4  norm          .10000E-03    1.8888        .90712E-02** at limit **
   5  Prefactor     .10000E-03    85.635        .90712E-02** at limit **
   6  norm          11.924        12.622        .29002E-02   -.32982E-04
   7  norm          3.1624        2.9302        .56980E-02   -.71971E-04
   8  Prefactor     .10000E-03    6.5383        .48701E-01** at limit **
   9  Prefactor     .10000E-03    5.2341        .90712E-02** at limit **
  10  Prefactor     7.5787        4.8707        .36419E-02    .16100E-02
  11  Prefactor     .10000E-03    9.7045        .90712E-02** at limit **
  12  norm          8.9872        4.5491        .33428E-02    .12578E-03
  13  norm          .10000E-03    1.8948        .27797E-01** at limit **
  14  Prefactor     .10000E-03    19.898        .90712E-02** at limit **
  15  Prefactor     .10000E-03    3.3464        .90712E-02** at limit **
  16  norm          3.6148        2.4895        .53129E-02    .14931E-03
  17  norm          .10000E-03    2.4223        .90712E-02** at limit **
  18  norm          .10000E-03    2.7540        .90712E-02** at limit **
  19  Prefactor     .10000E-03    143.48        .90712E-02** at limit **
  20  Normalizat    .99390        .21340        .46089E-01    .14535E-03
  21  Prefactor     .93164        .24213        .45409E-01    .10285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.2651
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9241
  norm       = 3.16242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.57874
  Prefactor  = 0.0001
  norm       = 8.98725
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61479
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.993897
  Prefactor  = 0.931639
 **********
 **   18 **HESSE 
 **********

 FCN=   3298.649     FROM HESSE     STATUS=OK           311 CALLS     2191 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          23.265        19.027        .83048E-04   -1.4743    
   4  norm          .10000E-03    1.8914        .77086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    85.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.924        12.623        .11601E-03   -1.5017    
   7  norm          3.1624        2.9298        .91508E-04   -1.5352    
   8  Prefactor     .10000E-03    27.325        .28400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2377        .12833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5787        4.8701        .97972E-04   -1.5157    
  11  Prefactor     .10000E-03    9.7182        .17461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.9872        4.5405        .83482E-04   -1.5108    
  13  norm          .10000E-03    5.0283        .15361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3601        .10255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6148        2.4864        .72990E-04   -1.5328    
  17  norm          .10000E-03    2.4995        .17429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7987        .93000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    144.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99390        .25092        .22563E-03   -.93235    
  21  Prefactor     .93164        .28476        .26220E-03   -.95044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85977e-10
Minuit parameter uncertainties:
  1  4.32111e-05
  2  9.76845e-06
  3  19.0317
  4  2.90487e-06
  5  0.000192859
  6  12.6261
  7  2.92995
  8  2.19078e-05
  9  1.01892e-05
  10  4.8704
  11  5.17998e-06
  12  4.54063
  13  5.20153e-06
  14  3.10678e-06
  15  7.2176e-06
  16  2.48652
  17  1.79156e-06
  18  1.13608e-06
  19  8.91065e-05
  20  0.251217
  21  0.285217
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  2.191e-05  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:  9.316e-01  2.852e-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:  9.939e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 9.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334904/likelihoodResults_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.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) = 3298.64915467
delta logL = -0.000172616451891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3297.66144523
delta logL = 0.987536825601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3618       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2526       1.0000          .0000       10.000    
     3 'Normalizat'    1.0055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90811       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.

 FCN=   3297.661     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      230 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3618        2.8892        .66666E-02    .79519E-03
   2  Index         1.2526        .42402        .17309       -.43536E-04
   3  Normalizat    1.0054        .21172        .46235E-01    .40516E-05
   4  Prefactor     .90817        .23987        .45108E-01    .64495E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36175
  Index      = 1.25259
  Normalizat = 1.00541
  Prefactor  = 0.908173
 **********
 **   18 **HESSE 
 **********

 FCN=   3297.661     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3618        3.8700        .10240E-03   -1.5401    
   2  Index         1.2526        .62140        .69977E-02   -.84728    
   3  Normalizat    1.0054        .24942        .22425E-03   -.92849    
   4  Prefactor     .90817        .28254        .26458E-03   -.95856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80465e-10
Minuit parameter uncertainties:
  1  3.87042
  2  0.625112
  3  0.249705
  4  0.282996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334904': 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) = 3297.66144519
delta logL = 0.987536860867

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.362e+00  3.870e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  1.253e+00  6.251e-01  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:  9.082e-01  2.830e-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:  1.005e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 1.25 +/- 0.63
Photon Flux (Free Index): 6.62e-09 +/- 8.94e-09
Energy Flux (Free Index): 4.71e-05 +/- 8.31e-05

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/334904/cmap_HighResolution_545184001_545443201_4FGL_J0104.8-2416_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', comment='SUCCESS', energy_flux2='4.71e-05', dlogl='9.88e-01', photon_flux2='6.62e-09', job_status='DONE', time_completed='2021-08-13 12:04:16.008669', photon_index_error2='0.63', photon_index2='1.25', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.96e-08', energy_flux_error2='8.31e-05', EG='0.99', time_epoch_completed='1628881456.01', return_code='0', job_id='334904', GAL2='0.91', EG2='1.01', return_code2='0', photon_flux_error2='8.94e-09', ts2='1.98', photon_index='2.59' WHERE bin_id='1180' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:04:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 334904: <4FGL_J0104.8-2416_daily_bin1180> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1180> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:50:26 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:50:37 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:50:37 2021
Terminated at Fri Aug 13 12:04:17 2021
Results reported at Fri Aug 13 12:04:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1180 16.2146 -24.2808 545184001 545443201 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            831 sec.

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

