/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 20 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 = 7510
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0924.0+2816_daily_bin1560
RA = 141.005, Dec = 28.2755
tmin = 643680001, tmax = 643939201
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='223996', job_status='RUN', time_executed='2021-08-31 11:33:44.660386', time_epoch_executed='1630434824.66' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223996/ft1_4FGL_J0924.0+2816_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223996/ft1_4FGL_J0924.0+2816_daily_bin1560.fits outfile=/scratch/kocevski/223996/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1560.fits ra=141.005 dec=28.2755 rad=12.0 tmin=643680001.0 tmax=643939201.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.04
user 3.25
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.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/223996/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.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 1.72
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/223996/ltcube_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.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/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits
.....................!
real 14.30
user 11.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/223996/ltcube_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.fits outfile=/scratch/kocevski/223996/expmap_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.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/223996/ltcube_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.fits
.....................!
real 194.45
user 185.81
sys 4.38

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

Setting source of interest to:
4FGL J0924.0+2816 @ 141.005 28.2755

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits scfile=/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits outfile=/scratch/kocevski/223996/cmap_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.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=141.005 yref=28.2755 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 1.96
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits scfile=/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits outfile=/scratch/kocevski/223996/cmap_HighResolution_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.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=141.005 yref=28.2755 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 1.29
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223996/Model_4FGL_J0924.0+2816_daily_bin1560.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/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits.....................!
real 54.20
user 46.98
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits', '/scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits', expMap='/scratch/kocevski/223996/expmap_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.fits', expCube='/scratch/kocevski/223996/ltcube_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223996/Model_4FGL_J0924.0+2816_daily_bin1560.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0924.0+2816'

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/223996/ft1_filtered_4FGL_J0924.0+2816_daily_bin1560.fits
Spacecraft file(s): /scratch/kocevski/223996/ft2_4FGL_J0924.0+2816_daily_bin1560.fits
Exposure map: /scratch/kocevski/223996/expmap_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.fits
Exposure cube: /scratch/kocevski/223996/ltcube_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223996/Model_4FGL_J0924.0+2816_daily_bin1560.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) = 5637.0828481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8136       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.632       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11290E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6647       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9470       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84658       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5637.052     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1740 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8137        .81614       -.67591E-07   -.97525E-04
   2  Prefactor     3.0784        8.9915        .39084E-05   -.99092E-05
   3  Prefactor     .10000E-03    7.6419       -.11669E-06** at limit **
   4  norm          .10000E-03    10.946        .32199E-07** at limit **
   5  Prefactor     3.0728        3.0277        .10098E-06    .31383E-04
   6  Prefactor     .10000E-03    19.425        .47076E-06** at limit **
   7  norm          1.6874        1.5841        .74819E-07    .19233E-03
   8  Prefactor     .10000E-03    6.7506        .62445E-07** at limit **
   9  Prefactor     38.578        40.926        .73414E-05    .19870E-04
  10  norm          .10000E-03    2.8706        .35599E-07** at limit **
  11  Prefactor     .10000E-03    2.0276       -.38066E-06** at limit **
  12  Prefactor     .10000E-03    14.230       -.52152E-06** at limit **
  13  Prefactor     .10000E-03    51.448       -.82178E-06** at limit **
  14  Prefactor     .10000E-03    20.248        .11714E-06** at limit **
  15  Prefactor     8.9938        5.9594        .10837E-06    .19739E-04
  16  Prefactor     2.2011        5.9019        .66413E-05    .30508E-05
  17  Prefactor     1.6648        1.7363        .50179E-07    .24321E-04
  18  norm          6.9475        6.6402        .70867E-07   -.12571E-05
  19  Normalizat    1.1076        .16758       -.71557E-06    .13331E-03
  20  Prefactor     .84660        .16984       -.54096E-06    .93402E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81374
  Prefactor  = 3.07844
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07276
  Prefactor  = 0.0001
  norm       = 1.68741
  Prefactor  = 0.0001
  Prefactor  = 38.5779
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.99384
  Prefactor  = 2.20107
  Prefactor  = 1.66482
  norm       = 6.94749
  Normalizat = 1.10761
  Prefactor  = 0.846595
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.052     FROM HESSE     STATUS=OK           293 CALLS     2033 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8137        .81201        .43309E-04   -1.5439    
   2  Prefactor     3.0784        8.9750        .11560E-02   -1.5357    
   3  Prefactor     .10000E-03    7.6869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0728        3.0238        .12523E-03   -1.5357    
   6  Prefactor     .10000E-03    19.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6874        1.5728        .88223E-04   -1.5448    
   8  Prefactor     .10000E-03    6.7732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.578        40.931        .32243E-03   -1.4465    
  10  norm          .10000E-03    2.8840        .12422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4795        .20429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9938        5.9599        .13365E-03   -1.5108    
  16  Prefactor     2.2011        5.9007        .13867E-02   -1.5411    
  17  Prefactor     1.6648        1.7205        .97441E-04   -1.5450    
  18  norm          6.9475        6.6366        .15221E-03   -1.5181    
  19  Normalizat    1.1076        .19148        .21641E-03   -.89508    
  20  Prefactor     .84660        .19553        .25066E-03   -.98033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17085e-10
Minuit parameter uncertainties:
  1  0.812012
  2  8.97894
  3  7.71651e-06
  4  2.85661e-05
  5  3.02399
  6  1.09093e-05
  7  1.5728
  8  5.36298e-06
  9  40.9604
  10  3.43414e-06
  11  1.95924e-08
  12  1.93528e-06
  13  8.84011e-06
  14  6.54861e-07
  15  5.96025
  16  5.90221
  17  1.72058
  18  6.63734
  19  0.191601
  20  0.195691
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.959e-08  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.466e-01  1.957e-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.108e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 141.005 28.276
Photon Flux Upper Limit: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223996/likelihoodResults_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.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) = 5637.05368448
delta logL = -0.00136921248122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5637.05231733
delta logL = -2.06843833439e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5637.052     FROM MIGRAD    STATUS=FAILED        97 CALLS      258 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    344.46        .21398E-02** at limit **
   2  Index         2.6237        5.1003        .50000       -.16788E-03
   3  Normalizat    1.1076        .38223E-01    .21641E-03    .12057E-03
   4  Prefactor     .84659        .39360E-01    .25066E-03    .46262E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5637.052     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      410 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    344.46        .39270E-03** at limit **
   2  Index         2.6237        5.1003        .61690E-04   -.16788E-03
   3  Normalizat    1.1076        .38223E-01    .78541E-06    .12057E-03
   4  Prefactor     .84659        .39360E-01    .56342E-06    .46262E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5636.627     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      536 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40169E-01    .84188E-01    .38760E-02   -.48555E-02
   2  Index         5.3109        .92359        .14739        .12471E-03
   3  Normalizat    1.0547        .20446        .43282E-04    .25846E-04
   4  Prefactor     .88160        .20252        .10026E-04   -.13607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0401692
  Index      = 5.31091
  Normalizat = 1.0547
  Prefactor  = 0.881599
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.627     FROM HESSE     STATUS=OK            31 CALLS      567 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40169E-01    .23021        .18041E-03   -1.5748    
   2  Index         5.3109        2.5454        .75727E-02    .62222E-01
   3  Normalizat    1.0547        .19755        .86565E-05   -.91220    
   4  Prefactor     .88160        .19930        .20053E-05   -.96787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74048e-11
Minuit parameter uncertainties:
  1  0.192087
  2  2.67115
  3  0.197691
  4  0.19946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223996': 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) = 5636.627201
delta logL = 0.425114269324

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  4.017e-02  1.921e-01  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  5.311e+00  2.671e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.290e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.816e-01  1.995e-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.055e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 141.005 28.276

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/223996/cmap_HighResolution_643680001_643939201_4FGL_J0924.0+2816_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-08-31 11:43:20.994447', job_id='223996', GAL2='0.88', fit_tolerance='1e-08', EG2='1.05', EG='1.11', time_epoch_completed='1630435400.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.25e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1560' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:43:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 223996: <4FGL_J0924.0+2816_daily_bin1560> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin1560> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 11:32:03 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:32:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 11:32:15 2021
Terminated at Tue Aug 31 11:43:21 2021
Results reported at Tue Aug 31 11:43:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1560 141.005 28.2755 643680001 643939201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0924.0+2816 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   554.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            678 sec.

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

