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


Performing analysis on: 4FGL_J0141.4-0928_daily_bin1624
RA = 25.3626, Dec = -9.4825
tmin = 660268801, tmax = 660528001
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='142244', job_status='RUN', time_executed='2021-12-07 12:19:26.367142', time_epoch_executed='1638908366.37' WHERE source_name='4FGL J0141.4-0928' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/142244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/142244/ft1_4FGL_J0141.4-0928_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/142244/ft1_4FGL_J0141.4-0928_daily_bin1624.fits outfile=/scratch/kocevski/142244/ft1_filteredMKT_4FGL_J0141.4-0928_daily_bin1624.fits ra=25.3626 dec=-9.4825 rad=12.0 tmin=660268801.0 tmax=660528001.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.89
user 3.62
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.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/142244/ft1_filteredMKT_4FGL_J0141.4-0928_daily_bin1624.fits evtable="EVENTS" outfile="/scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/142244/ltcube_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.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/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits
.....................!
real 14.29
user 13.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/142244/ltcube_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.fits outfile=/scratch/kocevski/142244/expmap_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.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/142244/ltcube_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.fits
.....................!
real 192.00
user 186.67
sys 4.80

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

Setting source of interest to:
4FGL J0141.4-0928 @ 25.3626 -9.4825

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits scfile=/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits outfile=/scratch/kocevski/142244/cmap_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.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=25.3626 yref=-9.4825 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits scfile=/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits outfile=/scratch/kocevski/142244/cmap_HighResolution_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.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=25.3626 yref=-9.4825 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/142244/Model_4FGL_J0141.4-0928_daily_bin1624.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/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits.....................!
real 47.84
user 46.39
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits', '/scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits', expMap='/scratch/kocevski/142244/expmap_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.fits', expCube='/scratch/kocevski/142244/ltcube_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/142244/Model_4FGL_J0141.4-0928_daily_bin1624.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0141.4-0928'

4FGL J0141.4-0928
   Spectrum: LogParabola
291         norm:  5.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  2.087e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  7.076e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/142244/ft1_filtered_4FGL_J0141.4-0928_daily_bin1624.fits
Spacecraft file(s): /scratch/kocevski/142244/ft2_4FGL_J0141.4-0928_daily_bin1624.fits
Exposure map: /scratch/kocevski/142244/expmap_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.fits
Exposure cube: /scratch/kocevski/142244/ltcube_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/142244/Model_4FGL_J0141.4-0928_daily_bin1624.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) = 4593.865698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.696       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82942E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3351       1.0000         .10000E-03   10000.    
    11 'norm      '    25.014       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2945       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .52211       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4593.862     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2018 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.694        38.191       -.37985E-06   -.83504E-04
   2  Prefactor     7.6053        64.931       -.15377E-05   -.35633E-04
   3  Prefactor     .10000E-03    15.739        .19517E-05** at limit **
   4  Prefactor     .10000E-03    23.935       -.13702E-05** at limit **
   5  Prefactor     5.1285        6.8872        .29442E-05   -.10037E-02
   6  Prefactor     .10010E-03    2.7555        .51803E-06** at limit **
   7  Prefactor     .10002E-03    47.672       -.68822E-05** at limit **
   8  Prefactor     .10000E-03    18.600       -.23329E-05** at limit **
   9  norm          .10000E-03    9.7333        .83501E-06** at limit **
  10  norm          1.3352        1.4929        .94504E-07   -.93127E-04
  11  norm          25.014        9.4586        .47087E-07   -.19316E-04
  12  Prefactor     .10002E-03    36.426        .72270E-05** at limit **
  13  Prefactor     9.2947        6.7164        .36464E-07   -.38107E-04
  14  norm          6.2647        3.4154        .77526E-07   -.53892E-04
  15  Prefactor     .10000E-03    .94097        .18409E-07** at limit **
  16  Prefactor     .10000E-03    10.327       -.14713E-05** at limit **
  17  Prefactor     .10000E-03    7.5485        .11868E-07** at limit **
  18  Prefactor     .10000E-03    11.623        .49120E-06** at limit **
  19  Normalizat    .52206        .20882       -.10175E-05   -.40702E-04
  20  Prefactor     1.4224        .20383       -.90801E-07   -.45842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6943
  Prefactor  = 7.60529
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 5.12852
  Prefactor  = 0.000100103
  Prefactor  = 0.000100017
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.33525
  norm       = 25.0141
  Prefactor  = 0.000100019
  Prefactor  = 9.29471
  norm       = 6.2647
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.522056
  Prefactor  = 1.42239
 **********
 **   18 **HESSE 
 **********

 FCN=   4593.862     FROM HESSE     STATUS=OK           289 CALLS     2307 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.694        38.092        .67076E-04   -1.4512    
   2  Prefactor     7.6053        65.353        .14539E-03   -1.5156    
   3  Prefactor     .10000E-03    15.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1285        7.6036        .88766E-03   -1.5255    
   6  Prefactor     .10010E-03    50.187        .21159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    50.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.7753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3352        1.4724        .83001E-04   -1.5477    
  11  norm          25.014        9.4586        .80094E-04   -1.4707    
  12  Prefactor     .10002E-03    39.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2947        6.7133        .13146E-03   -1.5098    
  14  norm          6.2647        3.4151        .86565E-04   -1.5207    
  15  Prefactor     .10000E-03    .94170        .64206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .52206        .23295        .33811E-03   -1.1140    
  20  Prefactor     1.4224        .23190        .21784E-03   -.79737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2052e-09
Minuit parameter uncertainties:
  1  38.118
  2  44.6538
  3  0.000295064
  4  0.000250563
  5  7.605
  6  0.00454299
  7  0.00182639
  8  0.000348772
  9  9.8621e-05
  10  1.47248
  11  9.45919
  12  0.00170633
  13  6.71382
  14  3.4152
  15  6.73976e-07
  16  0.000172231
  17  1.42035e-06
  18  6.16809e-05
  19  0.233385
  20  0.232075
Done.

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

Extracting fit parameters...

4FGL J0141.4-0928
   Spectrum: LogParabola
291         norm:  2.501e+01  9.459e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  2.087e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  7.076e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.422e+00  2.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  5.221e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.16
Ra Dec: 25.363 -9.482
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 4.73e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 2.36e-05

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) = 4593.69666741
delta logL = 0.164843579386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4593.68539926
delta logL = 0.176111732362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.873       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8955       1.0000          .0000       5.0000    
     3 'Normalizat'    .54257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4593.685     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      212 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.845        10.097        .20080E-02   -.24419E-04
   2  alpha         1.8934        .31399        .19372       -.14934E-04
   3  Normalizat    .54279        .19950        .74998E-01    .20773E-04
   4  Prefactor     1.4128        .20177        .49437E-01   -.85004E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.845
  alpha      = 1.89344
  Normalizat = 0.542789
  Prefactor  = 1.41283
 **********
 **   18 **HESSE 
 **********

 FCN=   4593.685     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.845        9.9249        .80320E-04   -1.4711    
   2  alpha         1.8934        .32346        .81455E-02   -.24507    
   3  Normalizat    .54279        .22642        .33209E-03   -1.1047    
   4  Prefactor     1.4128        .22949        .21854E-03   -.80011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57119e-12
Minuit parameter uncertainties:
  1  9.92559
  2  0.324423
  3  0.226808
  4  0.229654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/142244': 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) = 4593.68537696
delta logL = 0.176134029534

Extracting fit parameters...

4FGL J0141.4-0928
   Spectrum: LogParabola
291         norm:  2.485e+01  9.926e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  1.893e+00  3.244e-01  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  7.076e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.413e+00  2.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  5.428e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.44
Ra Dec: 25.363 -9.482
Photon Index (Free Index): 1.89 +/- 0.32
Photon Flux (Free Index): 1.03e-07 +/- 5.42e-08
Energy Flux (Free Index): 7.61e-05 +/- 4.13e-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/142244/cmap_HighResolution_660268801_660528001_4FGL_J0141.4-0928_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='7.61e-05', photon_flux_error='4.73e-08', dlogl='1.76e-01', energy_flux='6.25e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-12-07 12:27:30.397015', photon_index_error2='0.32', photon_index2='1.89', ts='27.16', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', energy_flux_error2='4.13e-05', EG='0.52', time_epoch_completed='1638908850.4', return_code='0', job_id='142244', GAL2='1.41', EG2='0.54', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='5.42e-08', ts2='27.44', photon_index='2.09' WHERE bin_id='1624' AND source_name='4FGL J0141.4-0928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:27:30 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 142244: <4FGL_J0141.4-0928_daily_bin1624> in cluster <slac> Done

Job <4FGL_J0141.4-0928_daily_bin1624> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:15:17 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:15:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:15:58 2021
Terminated at Tue Dec  7 12:27:31 2021
Results reported at Tue Dec  7 12:27:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0141.4-0928_daily_bin1624 25.3626 -9.4825 660268801 660528001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0141.4-0928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             191.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            734 sec.

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

