/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 158 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0024.7+0349_daily_bin1711
RA = 6.1975, Dec = 3.8321
tmin = 682819201, tmax = 683078401
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='954198', job_status='RUN', time_executed='2022-09-16 07:19:56.554587', time_epoch_executed='1663337996.55' WHERE source_name='4FGL J0024.7+0349' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954198/ft1_4FGL_J0024.7+0349_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954198/ft1_4FGL_J0024.7+0349_daily_bin1711.fits outfile=/scratch/kocevski/954198/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1711.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.58
user 4.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.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/954198/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.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.53
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 711

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/954198/ltcube_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.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/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits
.....................!
real 12.89
user 12.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/954198/ltcube_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.fits outfile=/scratch/kocevski/954198/expmap_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.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/954198/ltcube_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.fits
.....................!
real 192.03
user 186.34
sys 5.04

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

Setting source of interest to:
4FGL J0024.7+0349 @ 6.1975 3.8321

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits scfile=/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits outfile=/scratch/kocevski/954198/cmap_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.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=6.1975 yref=3.8321 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits scfile=/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits outfile=/scratch/kocevski/954198/cmap_HighResolution_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.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=6.1975 yref=3.8321 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954198/Model_4FGL_J0024.7+0349_daily_bin1711.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/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits.....................!
real 77.17
user 75.79
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits', '/scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits', expMap='/scratch/kocevski/954198/expmap_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.fits', expCube='/scratch/kocevski/954198/ltcube_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954198/Model_4FGL_J0024.7+0349_daily_bin1711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0024.7+0349'

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.144e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/954198/ft1_filtered_4FGL_J0024.7+0349_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/954198/ft2_4FGL_J0024.7+0349_daily_bin1711.fits
Exposure map: /scratch/kocevski/954198/expmap_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.fits
Exposure cube: /scratch/kocevski/954198/ltcube_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954198/Model_4FGL_J0024.7+0349_daily_bin1711.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) = 7279.39933741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.350       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.4576       1.0000          .0000       .10000E+07
     3 'norm      '    .29043E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .48319E-02   1.0000          .0000       .10000E+07
     5 'norm      '    9.5547       1.0000          .0000       .10000E+07
     6 'norm      '    5.6344       1.0000          .0000       .10000E+07
     7 'Prefactor '    20.378       1.0000          .0000       .10000E+07
     8 'norm      '    .40399E-03   1.0000          .0000       .10000E+07
     9 'norm      '    9.0744       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23723E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22256E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15155E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.1287       1.0000          .0000       .10000E+07
    14 'norm      '    13.180       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21219E-01   1.0000          .0000       .10000E+07
    16 'norm      '    64.716       1.0000          .0000       .10000E+07
    17 'Prefactor '    40.384       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.9828       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0142       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7279.328     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1531 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.384        8.7270       -.15916E-05   -.68793E-01
   2  Prefactor     3.4552        8.4193        .99846E-06   -.54610E-02
   3  norm          .55511E-10    1.0427       -.28094E-06** at limit **
   4  Prefactor     .27756E-09    9.1420       -.26154E-06** at limit **
   5  norm          9.5770        5.5923        .36613E-06   -.73394E-02
   6  norm          5.6614        4.4884       -.98283E-07    .44823E-02
   7  Prefactor     20.386        6.9886       -.10231E-05   -.62209E-01
   8  norm          .55511E-10    4.0109       -.29088E-06** at limit **
   9  norm          9.0822        11.628       -.12817E-05   -.43628E-01
  10  Prefactor     .23648E-07    34.280        .28332E-05** at limit **
  11  Prefactor     .11102E-09    5.0658       -.67390E-07** at limit **
  12  Prefactor     .55511E-10    1.1637       -.52751E-06** at limit **
  13  Prefactor     2.1269        3.6935        .14634E-06   -.15429E-02
  14  norm          13.151        10.183       -.20441E-05    .55721E-01
  15  Prefactor     .55511E-10    23.553       -.22802E-06** at limit **
  16  norm          64.723        5.2815        .47008E-07   -.56392E-02
  17  Prefactor     39.215        49.563       -.12734E-05    .13071E-01
  18  Prefactor     4.0579        7.9880       -.21154E-05    .37103E-01
  19  Normalizat    1.0145        .24781       -.15215E-04    .24934E-03
  20  Prefactor     1.0394        .17784        .67341E-05    .28524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3838
  Prefactor  = 3.45517
  norm       = 5.55112e-11
  Prefactor  = 2.77556e-10
  norm       = 9.57699
  norm       = 5.66137
  Prefactor  = 20.3861
  norm       = 5.55112e-11
  norm       = 9.08221
  Prefactor  = 2.36478e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 2.12689
  norm       = 13.1506
  Prefactor  = 5.55112e-11
  norm       = 64.7233
  Prefactor  = 39.2148
  Prefactor  = 4.05788
  Normalizat = 1.01453
  Prefactor  = 1.03943
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.328     FROM HESSE     STATUS=OK           335 CALLS     1866 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.384        13.362        .31120E-03   -1.5644    
   2  Prefactor     3.4552        8.5029        .54363E-03   -1.5671    
   3  norm          .55511E-10    1.0415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27756E-09    9.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.5770        5.6302        .32396E-03   -1.5646    
   6  norm          5.6614        4.5276        .42297E-03   -1.5660    
   7  Prefactor     20.386        13.819        .22159E-03   -1.5618    
   8  norm          .55511E-10    4.0130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.0822        12.098        .33247E-03   -1.5648    
  10  Prefactor     .23648E-07    34.102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    5.0448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    1.1586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1269        3.7125        .70641E-03   -1.5679    
  14  norm          13.151        17.897        .27565E-03   -1.5635    
  15  Prefactor     .55511E-10    23.574        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          64.723        5.2798        .12431E-03   -1.5547    
  17  Prefactor     39.215        49.822        .15738E-03   -1.5583    
  18  Prefactor     4.0579        25.972        .50514E-03   -1.5668    
  19  Normalizat    1.0145        .21636        .76602E-01   -.92545    
  20  Prefactor     1.0394        .15503        .40568E-01   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78746e-07
Minuit parameter uncertainties:
  1  13.3618
  2  8.50291
  3  1.17265e-05
  4  0.000102676
  5  5.63022
  6  4.52759
  7  13.819
  8  2.25971e-05
  9  12.0983
  10  0.00179655
  11  4.19289e-05
  12  1.96047e-05
  13  3.7125
  14  17.8966
  15  6.77033e-05
  16  5.2798
  17  49.8223
  18  20.5323
  19  0.216545
  20  0.1551
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  2.039e+01  1.382e+01  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.039e+00  1.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.015e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 6.197 3.832
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.17e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.61e-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) = 7279.23948193
delta logL = 0.0883013589864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7279.2339084
delta logL = 0.0938748867966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.400       1.0000          .0000       .10000E+07
     2 'Index     '    2.1578       1.0000          .0000       10.000    
     3 'Normalizat'    1.0290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0320       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7279.234     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      270 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.377        483.15        .19466E-03    .17775E-02
   2  Index         2.1568        6.0539        .13940        .10294E-03
   3  Normalizat    1.0291        .13493        .76119E-01    .16945E-04
   4  Prefactor     1.0320        .72120E-01    .41104E-01    .59117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3771
  Index      = 2.15679
  Normalizat = 1.0291
  Prefactor  = 1.03204
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.234     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.377        22.386        .38932E-04   -1.5605    
   2  Index         2.1568        .53898        .71897E-02   -.60485    
   3  Normalizat    1.0291        .23996        .33689E-03   -.92062    
   4  Prefactor     1.0320        .17595        .24846E-03   -.91669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04289e-09
Minuit parameter uncertainties:
  1  22.3858
  2  0.540537
  3  0.240212
  4  0.176045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954198': 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) = 7279.23390272
delta logL = 0.0938805664318

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  2.638e+01  2.239e+01  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.157e+00  5.405e-01  0.000e+00  1.000e+01 (-1.000e+00)
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.032e+00  1.760e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.029e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 6.197 3.832
Photon Index (Free Index): 2.16 +/- 0.54
Photon Flux (Free Index): 6.07e-08 +/- 4.93e-08
Energy Flux (Free Index): 2.96e-05 +/- 2.77e-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/954198/cmap_HighResolution_682819201_683078401_4FGL_J0024.7+0349_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.17e-08', energy_flux2='2.96e-05', photon_flux_error='4.85e-08', dlogl='9.39e-02', energy_flux='2.38e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2022-09-16 07:29:32.769606', photon_index_error2='0.54', photon_index2='2.16', ts='4.06', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='1.01', time_epoch_completed='1663338572.77', return_code='0', job_id='954198', GAL2='1.03', EG2='1.03', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.93e-08', ts2='4.20', photon_index='2.39' WHERE bin_id='1711' AND source_name='4FGL J0024.7+0349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 07:29:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 954198: <4FGL_J0024.7+0349_daily_bin1711> in cluster <slac> Done

Job <4FGL_J0024.7+0349_daily_bin1711> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Sep 16 07:16:33 2022
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 07:17:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 07:17:13 2022
Terminated at Fri Sep 16 07:29:33 2022
Results reported at Fri Sep 16 07:29:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0024.7+0349_daily_bin1711 6.1975 3.8321 682819201 683078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0024.7+0349 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            780 sec.

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

