/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 57 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 = 7400
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0924.0+2816_daily_bin403
RA = 141.005, Dec = 28.2755
tmin = 343785601, tmax = 344044801
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='217559', job_status='RUN', time_executed='2021-08-31 11:17:56.758337', time_epoch_executed='1630433876.76' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217559/ft1_4FGL_J0924.0+2816_daily_bin403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217559/ft1_4FGL_J0924.0+2816_daily_bin403.fits outfile=/scratch/kocevski/217559/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin403.fits ra=141.005 dec=28.2755 rad=12.0 tmin=343785601.0 tmax=344044801.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 2.92
user 2.63
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.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/217559/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin403.fits evtable="EVENTS" outfile="/scratch/kocevski/217559/ft1_filtered_4FGL_J0924.0+2816_daily_bin403.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.55
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217559/ft1_filtered_4FGL_J0924.0+2816_daily_bin403.fits" evtable="EVENTS" scfile=/scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits sctable="SC_DATA" outfile=/scratch/kocevski/217559/ltcube_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.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/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits
.....................!
real 9.84
user 9.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217559/ft1_filtered_4FGL_J0924.0+2816_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/217559/ltcube_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.fits outfile=/scratch/kocevski/217559/expmap_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.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/217559/ltcube_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.fits
.....................!
real 150.76
user 146.64
sys 3.52

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/217559/ft1_filtered_4FGL_J0924.0+2816_daily_bin403.fits scfile=/scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits outfile=/scratch/kocevski/217559/cmap_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.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 0.55
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217559/ft1_filtered_4FGL_J0924.0+2816_daily_bin403.fits scfile=/scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits outfile=/scratch/kocevski/217559/cmap_HighResolution_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.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 0.48
user 0.31
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217559/ft1_filtered_4FGL_J0924.0+2816_daily_bin403.fits', '/scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits', expMap='/scratch/kocevski/217559/expmap_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.fits', expCube='/scratch/kocevski/217559/ltcube_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217559/Model_4FGL_J0924.0+2816_daily_bin403.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/217559/ft1_filtered_4FGL_J0924.0+2816_daily_bin403.fits
Spacecraft file(s): /scratch/kocevski/217559/ft2_4FGL_J0924.0+2816_daily_bin403.fits
Exposure map: /scratch/kocevski/217559/expmap_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.fits
Exposure cube: /scratch/kocevski/217559/ltcube_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217559/Model_4FGL_J0924.0+2816_daily_bin403.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) = 6513.28761502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8644       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19680E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .85231E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0447       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9977       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9471       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99831       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93532       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=   6513.247     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2084 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8644        .98700       -.11051E-07    .26975E-04
   2  Prefactor     17.745        11.978       -.64884E-07    .35859E-05
   3  Prefactor     .10000E-03    30.642       -.25680E-06** at limit **
   4  norm          .10000E-03    19.180        .13501E-06** at limit **
   5  Prefactor     4.5030        3.8230       -.89120E-08   -.52793E-04
   6  Prefactor     .10001E-03    180.88       -.38944E-05** at limit **
   7  norm          .10000E-03    .72033        .43627E-08** at limit **
   8  Prefactor     38.179        18.902       -.40712E-05   -.51047E-04
   9  Prefactor     .10000E-03    28.958       -.26821E-05** at limit **
  10  norm          .10001E-03    5.7176        .15574E-05** at limit **
  11  Prefactor     .10000E-03    1.0459       -.21207E-07** at limit **
  12  Prefactor     25.005        31.051       -.63398E-06    .77119E-05
  13  Prefactor     .10000E-03    14.656       -.13886E-07** at limit **
  14  Prefactor     .10000E-03    27.307        .28770E-05** at limit **
  15  Prefactor     .10000E-03    2.8624        .57309E-07** at limit **
  16  Prefactor     3.0466        11.760       -.45886E-06   -.19824E-04
  17  Prefactor     2.9981        1.9914       -.35285E-07   -.15364E-05
  18  norm          1.9464        1.3417        .13865E-06   -.13341E-02
  19  Normalizat    .99798        .16836        .63800E-06   -.16584E-03
  20  Prefactor     .93568        .16043       -.19776E-06   -.64468E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.86442
  Prefactor  = 17.7451
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.50302
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 38.1785
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 25.0053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04661
  Prefactor  = 2.99815
  norm       = 1.94644
  Normalizat = 0.997985
  Prefactor  = 0.935681
 **********
 **   18 **HESSE 
 **********

 FCN=   6513.247     FROM HESSE     STATUS=OK           293 CALLS     2377 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8644        .98783        .38497E-04   -1.5315    
   2  Prefactor     17.745        11.984        .95076E-04   -1.4865    
   3  Prefactor     .10000E-03    31.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    19.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5030        3.8207        .13932E-03   -1.5284    
   6  Prefactor     .10001E-03    187.05        .36484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2301        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.179        19.030        .64876E-04   -1.4471    
   9  Prefactor     .10000E-03    28.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    25.103        .36727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0504        .80560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.005        31.260        .80093E-04   -1.4707    
  13  Prefactor     .10000E-03    14.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9533        .26659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0466        11.785        .23252E-03   -1.5359    
  17  Prefactor     2.9981        1.9869        .89505E-04   -1.5362    
  18  norm          1.9464        4.6072        .13056E-02   -1.5429    
  19  Normalizat    .99798        .19797        .23831E-03   -.93098    
  20  Prefactor     .93568        .18890        .24462E-03   -.94905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18256e-09
Minuit parameter uncertainties:
  1  0.987829
  2  11.9859
  3  1.85792e-05
  4  5.82638e-06
  5  3.82091
  6  0.00219984
  7  2.12853e-06
  8  19.0329
  9  7.93549e-05
  10  0.000760706
  11  2.09209e-08
  12  31.2807
  13  1.21975e-06
  14  9.61678e-05
  15  1.56059e-06
  16  11.794
  17  1.98692
  18  4.60801
  19  0.198115
  20  0.189034
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  2.092e-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:  9.357e-01  1.890e-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:  9.980e-01  1.981e-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: 5.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217559/likelihoodResults_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.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) = 6513.25138217
delta logL = -0.00450098092733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6513.24688108
delta logL = 1.0478652257e-07

Fit tolerance = 1e-08

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

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

 FCN=   6513.247     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.878        .80743E-02** at limit **
   2  Index         2.1880        5.9375        .50000        .29879E-06
   3  Normalizat    .99799        .12772E-01    .23831E-03    .86969E-04
   4  Prefactor     .93568        .12803E-01    .24462E-03    .10424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18796
  Normalizat = 0.997987
  Prefactor  = 0.93568
 **********
 **   18 **HESSE 
 **********

 FCN=   6513.247     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    158.66        .82795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1880        8.8665        .50000       -.59730    
   3  Normalizat    .99799        .61313E-01    .95322E-05   -.93098    
   4  Prefactor     .93568        .61439E-01    .97847E-05   -.94905    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.32993e-10
Minuit parameter uncertainties:
  1  9.69546e-05
  2  1003.39
  3  0.0613178
  4  0.0614434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217559': 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): 102
logL (Free Index) = 6513.24687881
delta logL = 2.37545646087e-06

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  9.695e-05  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.188e+00  1.003e+03  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:  9.357e-01  6.144e-02  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:  9.980e-01  6.132e-02  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/217559/cmap_HighResolution_343785601_344044801_4FGL_J0924.0+2816_daily_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-08-31 11:26:03.897285', job_id='217559', GAL2='0.94', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630434363.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='403' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 217559: <4FGL_J0924.0+2816_daily_bin403> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin403> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Aug 31 11:16:00 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:16:01 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:16:01 2021
Terminated at Tue Aug 31 11:26:04 2021
Results reported at Tue Aug 31 11:26:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin403 141.005 28.2755 343785601 344044801 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 :                                   476.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            604 sec.

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

