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


Performing analysis on: 4FGL_J1924.8-2914_daily_bin1631
RA = 291.214, Dec = -29.2468
tmin = 662083201, tmax = 662342401
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='559885', job_status='RUN', time_executed='2021-12-28 00:32:58.142044', time_epoch_executed='1640680378.14' WHERE source_name='4FGL J1924.8-2914' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559885/ft1_4FGL_J1924.8-2914_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559885/ft1_4FGL_J1924.8-2914_daily_bin1631.fits outfile=/scratch/kocevski/559885/ft1_filteredMKT_4FGL_J1924.8-2914_daily_bin1631.fits ra=291.214 dec=-29.2468 rad=12.0 tmin=662083201.0 tmax=662342401.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.87
user 3.62
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.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/559885/ft1_filteredMKT_4FGL_J1924.8-2914_daily_bin1631.fits evtable="EVENTS" outfile="/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/559885/ltcube_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.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/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits
.....................!
real 12.22
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/559885/ltcube_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.fits outfile=/scratch/kocevski/559885/expmap_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.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/559885/ltcube_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.fits
.....................!
real 190.29
user 185.43
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
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Extended source W 28 in ROI with RadialDisk spatial model.
Extended source HESS J1804-216 in ROI with RadialDisk spatial model.
Extended source W 30 in ROI with RadialDisk spatial model.
Extended source HESS J1808-204 in ROI with RadialDisk spatial model.
Extended source HESS J1809-193 in ROI with RadialDisk spatial model.
Extended source HESS J1813-178 in ROI with RadialDisk spatial model.
Extended source HESS J1825-137 in ROI with RadialGaussian spatial model.
Added 357 point sources and 8 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1924.8-2914 @ 291.214 -29.2468

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits scfile=/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits outfile=/scratch/kocevski/559885/cmap_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.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=291.214 yref=-29.2468 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits scfile=/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits outfile=/scratch/kocevski/559885/cmap_HighResolution_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.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=291.214 yref=-29.2468 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/559885/Model_4FGL_J1924.8-2914_daily_bin1631.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 FGES J1745.8-3028
adding source GAL_V02
adding source HESS J1804-216
adding source HESS J1808-204
adding source HESS J1809-193
adding source HESS J1813-178
adding source HESS J1825-137
adding source W 28
adding source W 30
Working on...
/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits.....................!
real 73.63
user 72.29
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits', '/scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits', expMap='/scratch/kocevski/559885/expmap_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.fits', expCube='/scratch/kocevski/559885/ltcube_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/559885/Model_4FGL_J1924.8-2914_daily_bin1631.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1924.8-2914'

4FGL J1924.8-2914
   Spectrum: PowerLaw
985    Prefactor:  3.573e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
986        Index:  2.388e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
987        Scale:  8.495e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/559885/ft1_filtered_4FGL_J1924.8-2914_daily_bin1631.fits
Spacecraft file(s): /scratch/kocevski/559885/ft2_4FGL_J1924.8-2914_daily_bin1631.fits
Exposure map: /scratch/kocevski/559885/expmap_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.fits
Exposure cube: /scratch/kocevski/559885/ltcube_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/559885/Model_4FGL_J1924.8-2914_daily_bin1631.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) = 6613.03719002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.664       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6492       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0911       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15979E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.128       1.0000         .10000E-03   10000.    
     8 'norm      '    8.9414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.014       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.907       1.0000         .10000E-03   10000.    
    13 'norm      '    23.281       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1539       1.0000         .10000E-03   10000.    
    15 'norm      '    6.5151       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8526       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4586       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1306E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6613.023     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1643 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.663        42.903        .26149E-02    .10034E-03
   2  Prefactor     .10000E-03    30.919        .90712E-02** at limit **
   3  norm          6.6490        6.5827        .38905E-02   -.55552E-03
   4  norm          1.0921        1.1637        .11444E-01    .79696E-03
   5  Prefactor     .10004E-03    154.45        .90712E-02** at limit **
   6  norm          .10000E-03    5.8750        .90712E-02** at limit **
   7  Prefactor     26.129        15.051        .19593E-02    .33124E-03
   8  norm          8.9417        7.9808        .33510E-02    .20713E-02
   9  Prefactor     17.963        8.8220        .23625E-02   -.31047E-02
  10  Prefactor     .10000E-03    52.833        .90712E-02** at limit **
  11  Prefactor     17.014        14.653        .24275E-02    .76741E-04
  12  Prefactor     41.908        36.387        .15481E-02   -.96275E-04
  13  norm          23.281        24.433        .20754E-02   -.80797E-05
  14  Prefactor     8.1535        6.2229        .35101E-02    .22207E-03
  15  norm          6.5151        2.4288        .39308E-02    .20245E-03
  16  Prefactor     .10000E-03    33.279        .90712E-02** at limit **
  17  norm          2.8522        19.573        .60180E-02    .14961E-03
  18  Normalizat    1.4585        .41643        .11668       -.24678E-04
  19  Prefactor     .81972        .87951E-01    .32938E-01   -.16365E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6631
  Prefactor  = 0.0001
  norm       = 6.64899
  norm       = 1.09208
  Prefactor  = 0.000100039
  norm       = 0.0001
  Prefactor  = 26.129
  norm       = 8.94166
  Prefactor  = 17.9631
  Prefactor  = 0.000100002
  Prefactor  = 17.0145
  Prefactor  = 41.9083
  norm       = 23.2809
  Prefactor  = 8.15353
  norm       = 6.51512
  Prefactor  = 0.000100005
  norm       = 2.85224
  Normalizat = 1.45854
  Prefactor  = 0.819718
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.023     FROM HESSE     STATUS=OK           264 CALLS     1907 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.663        43.159        .10459E-03   -1.4942    
   2  Prefactor     .10000E-03    30.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6490        6.5905        .15562E-03   -1.5192    
   4  norm          1.0921        1.1354        .85817E-04   -1.5499    
   5  Prefactor     .10004E-03    157.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.9071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.129        14.997        .39186E-03   -1.4685    
   8  norm          8.9417        7.9758        .13404E-03   -1.5110    
   9  Prefactor     17.963        8.8454        .94499E-04   -1.4860    
  10  Prefactor     .10000E-03    52.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.014        14.680        .97099E-04   -1.4883    
  12  Prefactor     41.908        36.396        .61924E-04   -1.4412    
  13  norm          23.281        24.434        .83017E-04   -1.4743    
  14  Prefactor     8.1535        6.2400        .14040E-03   -1.5137    
  15  norm          6.5151        2.4334        .74284E-04   -1.5197    
  16  Prefactor     .10000E-03    33.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8522        19.674        .24072E-03   -1.5370    
  18  Normalizat    1.4585        .47725        .51738E-03   -.78950    
  19  Prefactor     .81972        .10150        .14553E-03   -.99006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97929e-09
Minuit parameter uncertainties:
  1  43.2505
  2  8.25435e-05
  3  6.59125
  4  1.13542
  5  0.00499924
  6  6.89598e-05
  7  14.9995
  8  7.97677
  9  8.84603
  10  0.000708866
  11  14.6831
  12  36.4151
  13  24.4449
  14  6.24048
  15  2.43347
  16  0.000775609
  17  14.989
  18  0.478726
  19  0.101525
Done.

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

Extracting fit parameters...

4FGL J1924.8-2914
   Spectrum: PowerLaw
985    Prefactor:  1.796e+01  8.846e+00  1.000e-04  1.000e+04 ( 1.000e-12)
986        Index:  2.388e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
987        Scale:  8.495e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1277    Prefactor:  8.197e-01  1.015e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1278        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1279        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1273   Normalization:  1.459e+00  4.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 291.214 -29.247
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 1.06e-07
Energy Flux (Fixed Index): 7.14e-05 +/- 3.52e-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) = 6612.36279374
delta logL = 0.659975370128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6612.35909703
delta logL = 0.663672084036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.149       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9709       1.0000          .0000       10.000    
     3 'Normalizat'    1.3570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1306E+06   .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=   6612.359     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      303 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.150        10.084        .10587E-03   -.33043E-03
   2  Index         2.9710        .64109        .42004E-02   -.55850E-04
   3  Normalizat    1.3570        .45717        .53278E-03    .16731E-03
   4  Prefactor     .83323        .98225E-01    .14440E-03    .70288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1495
  Index      = 2.97105
  Normalizat = 1.35695
  Prefactor  = 0.83323
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.359     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.150        8.7593        .42346E-05   -1.5071    
   2  Index         2.9710        .55671        .16802E-03   -.41784    
   3  Normalizat    1.3570        .45671        .21311E-04   -.81882    
   4  Prefactor     .83323        .98133E-01    .28880E-04   -.98515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26246e-10
Minuit parameter uncertainties:
  1  8.76037
  2  0.558095
  3  0.45808
  4  0.0981539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559885': 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) = 6612.35909666
delta logL = 0.663672456203

Extracting fit parameters...

4FGL J1924.8-2914
   Spectrum: PowerLaw
985    Prefactor:  1.015e+01  8.760e+00  1.000e-04  1.000e+04 ( 1.000e-12)
986        Index:  2.971e+00  5.581e-01  0.000e+00  1.000e+01 (-1.000e+00)
987        Scale:  8.495e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1277    Prefactor:  8.332e-01  9.815e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1278        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1279        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1273   Normalization:  1.357e+00  4.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.66
Ra Dec: 291.214 -29.247
Photon Index (Free Index): 2.97 +/- 0.56
Photon Flux (Free Index): 2.97e-07 +/- 1.40e-07
Energy Flux (Free Index): 6.02e-05 +/- 2.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/559885/cmap_HighResolution_662083201_662342401_4FGL_J1924.8-2914_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='6.02e-05', photon_flux_error='1.06e-07', dlogl='6.64e-01', energy_flux='7.14e-05', photon_flux2='2.97e-07', job_status='DONE', time_completed='2021-12-28 00:46:35.557475', photon_index_error2='0.56', photon_index2='2.97', ts='7.17', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='1.46', time_epoch_completed='1640681195.56', return_code='0', job_id='559885', GAL2='0.83', EG2='1.36', return_code2='0', energy_flux_error='3.52e-05', photon_flux_error2='1.40e-07', ts2='8.66', photon_index='2.39' WHERE bin_id='1631' AND source_name='4FGL J1924.8-2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:46:35 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 559885: <4FGL_J1924.8-2914_daily_bin1631> in cluster <slac> Done

Job <4FGL_J1924.8-2914_daily_bin1631> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 28 00:30:23 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:30:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:30:26 2021
Terminated at Tue Dec 28 00:46:36 2021
Results reported at Tue Dec 28 00:46:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1924.8-2914_daily_bin1631 291.214 -29.2468 662083201 662342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1924.8-2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   819.00 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             325.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            973 sec.

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

