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


Performing analysis on: 4FGL_J0924.0+2816_daily_bin709
RA = 141.005, Dec = 28.2755
tmin = 423100801, tmax = 423360001
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='219375', job_status='RUN', time_executed='2021-08-31 11:21:42.049345', time_epoch_executed='1630434102.05' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219375/ft1_4FGL_J0924.0+2816_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219375/ft2_4FGL_J0924.0+2816_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219375/ft1_4FGL_J0924.0+2816_daily_bin709.fits outfile=/scratch/kocevski/219375/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin709.fits ra=141.005 dec=28.2755 rad=12.0 tmin=423100801.0 tmax=423360001.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.92
user 4.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219375/ft1_filtered_4FGL_J0924.0+2816_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/219375/ft2_4FGL_J0924.0+2816_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/219375/ltcube_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.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/219375/ft2_4FGL_J0924.0+2816_daily_bin709.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219375/ft1_filtered_4FGL_J0924.0+2816_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/219375/ft2_4FGL_J0924.0+2816_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/219375/ltcube_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.fits outfile=/scratch/kocevski/219375/expmap_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.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/219375/ltcube_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.fits
.....................!
real 191.51
user 187.53
sys 3.42

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/219375/ft1_filtered_4FGL_J0924.0+2816_daily_bin709.fits scfile=/scratch/kocevski/219375/ft2_4FGL_J0924.0+2816_daily_bin709.fits outfile=/scratch/kocevski/219375/cmap_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.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.02
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219375/ft1_filtered_4FGL_J0924.0+2816_daily_bin709.fits scfile=/scratch/kocevski/219375/ft2_4FGL_J0924.0+2816_daily_bin709.fits outfile=/scratch/kocevski/219375/cmap_HighResolution_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8909       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.511       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58314       1.0000         .10000E-03   10000.    
     4 'norm      '    .18234E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.480       1.0000         .10000E-03   10000.    
    10 'norm      '    10.277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8047       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2521       1.0000         .10000E-03   10000.    
    13 'Prefactor '    81.339       1.0000         .10000E-03   10000.    
    14 'Prefactor '    97.646       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7219       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9132       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0322       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86531       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=   4657.639     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2045 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8908        .89264       -.23914E-06    .25961E-03
   2  Prefactor     14.509        11.022        .16506E-05    .72004E-04
   3  Prefactor     .49548        14.189       -.57996E-06   -.69828E-03
   4  norm          .10000E-03    120.86       -.16158E-04** at limit **
   5  Prefactor     2.4193        2.3289       -.21269E-06    .16109E-03
   6  Prefactor     .10000E-03    32.785       -.48787E-06** at limit **
   7  norm          .10000E-03    .74268       -.66879E-07** at limit **
   8  Prefactor     .10000E-03    38.157       -.12180E-05** at limit **
   9  Prefactor     57.473        53.173       -.51278E-05    .44558E-04
  10  norm          10.277        9.9994       -.51816E-05    .15143E-04
  11  Prefactor     5.8048        5.7399        .20529E-05    .22525E-03
  12  Prefactor     7.2114        47.832       -.75839E-04    .76816E-05
  13  Prefactor     81.313        81.846       -.25629E-04    .28527E-04
  14  Prefactor     97.628        71.734       -.16377E-04    .20018E-04
  15  Prefactor     .10000E-03    8.1679        .80324E-06** at limit **
  16  Prefactor     .10000E-03    5.2777       -.12216E-06** at limit **
  17  Prefactor     1.7203        3.0964        .16590E-08   -.24333E-03
  18  norm          4.9129        6.8354       -.39332E-05   -.53208E-04
  19  Normalizat    1.0327        .20824        .10834E-04   -.69939E-04
  20  Prefactor     .86489        .18647       -.88365E-06    .45046E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89077
  Prefactor  = 14.5092
  Prefactor  = 0.495482
  norm       = 0.000100001
  Prefactor  = 2.41929
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.4732
  norm       = 10.277
  Prefactor  = 5.80483
  Prefactor  = 7.21144
  Prefactor  = 81.3131
  Prefactor  = 97.6281
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.7203
  norm       = 4.91286
  Normalizat = 1.03273
  Prefactor  = 0.864893
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.639     FROM HESSE     STATUS=OK           295 CALLS     2340 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8908        .89176        .42520E-04   -1.5433    
   2  Prefactor     14.509        11.029        .10514E-03   -1.4946    
   3  Prefactor     .49548        182.34        .47109E-02   -1.5567    
   4  norm          .10000E-03    123.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4193        2.3387        .99425E-04   -1.5397    
   6  Prefactor     .10000E-03    32.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .77077        .11479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     57.473        53.154        .52914E-04   -1.4190    
  10  norm          10.277        10.030        .12499E-03   -1.5067    
  11  Prefactor     5.8048        5.7316        .14807E-03   -1.5226    
  12  Prefactor     7.2114        48.450        .14895E-03   -1.5171    
  13  Prefactor     81.313        81.913        .44534E-04   -1.3902    
  14  Prefactor     97.628        71.836        .20339E-03   -1.3729    
  15  Prefactor     .10000E-03    8.3655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.2891        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7203        3.0786        .15098E-03   -1.5446    
  18  norm          4.9129        6.8362        .18146E-03   -1.5265    
  19  Normalizat    1.0327        .24521        .23717E-03   -.91942    
  20  Prefactor     .86489        .21691        .25068E-03   -.97379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33059e-08
Minuit parameter uncertainties:
  1  0.891768
  2  11.0303
  3  19.0668
  4  0.000615711
  5  2.33874
  6  1.11831e-05
  7  8.09465e-06
  8  0.000254136
  9  53.1981
  10  10.032
  11  5.73218
  12  37.4276
  13  82.0266
  14  71.9003
  15  0.000241361
  16  2.8741e-05
  17  3.0789
  18  6.83728
  19  0.245474
  20  0.21713
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  5.805e+00  5.732e+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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  8.649e-01  2.171e-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.033e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 141.005 28.276
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 5.52e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.60e-05

TS (Fixed Index): 1.37
Ra Dec: 141.005 28.276
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219375/likelihoodResults_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.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): 0
logL (Free Index) = 4657.56787346
delta logL = 0.0709023666795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4657.56371293
delta logL = 0.0750628957812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1703       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9033       1.0000          .0000       10.000    
     3 'Normalizat'    1.0111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88147       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=   4657.564     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1570        97.001        .49340E-02    .33046E-03
   2  Index         2.9052        6.4320        .14369        .81892E-04
   3  Normalizat    1.0112        .73924E-01    .45348E-01    .75127E-05
   4  Prefactor     .88132        .67466E-01    .44768E-01    .74496E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15702
  Index      = 2.90523
  Normalizat = 1.01123
  Prefactor  = 0.881322
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.564     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1570        8.2400        .11752E-03   -1.5300    
   2  Index         2.9052        1.4214        .75269E-02   -.43229    
   3  Normalizat    1.0112        .22931        .23940E-03   -.92655    
   4  Prefactor     .88132        .21890        .24863E-03   -.96797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12533e-08
Minuit parameter uncertainties:
  1  8.24224
  2  1.4457
  3  0.229535
  4  0.219118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219375': 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) = 4657.56371038
delta logL = 0.075065439346

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  4.157e+00  8.242e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.905e+00  1.446e+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.813e-01  2.191e-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.011e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 141.005 28.276
Photon Index (Free Index): 2.91 +/- 1.45
Photon Flux (Free Index): 7.01e-08 +/- 6.90e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/219375/cmap_HighResolution_423100801_423360001_4FGL_J0924.0+2816_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='1.47e-05', photon_flux_error='5.52e-08', dlogl='7.51e-02', energy_flux='1.62e-05', photon_flux2='7.01e-08', job_status='DONE', time_completed='2021-08-31 11:30:26.273656', photon_index_error2='1.45', photon_index2='2.91', ts='1.37', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.51e-05', EG='1.03', time_epoch_completed='1630434626.27', return_code='0', job_id='219375', GAL2='0.88', EG2='1.01', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='6.90e-08', ts2='1.54', photon_index='2.51' WHERE bin_id='709' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 219375: <4FGL_J0924.0+2816_daily_bin709> in cluster <slac> Done

Job <4FGL_J0924.0+2816_daily_bin709> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 11:20:43 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 11:20:44 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:20:44 2021
Terminated at Tue Aug 31 11:30:27 2021
Results reported at Tue Aug 31 11:30:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin709 141.005 28.2755 423100801 423360001 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 :                                   512.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            584 sec.

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

