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


Performing analysis on: 4FGL_J0924.0+2816_daily_bin1586
RA = 141.005, Dec = 28.2755
tmin = 650419201, tmax = 650678401
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='224038', job_status='RUN', time_executed='2021-08-31 11:35:40.296785', time_epoch_executed='1630434940.3' WHERE source_name='4FGL J0924.0+2816' and cadence='daily' and bin_id='1586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224038/ft1_4FGL_J0924.0+2816_daily_bin1586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224038/ft2_4FGL_J0924.0+2816_daily_bin1586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224038/ft1_4FGL_J0924.0+2816_daily_bin1586.fits outfile=/scratch/kocevski/224038/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1586.fits ra=141.005 dec=28.2755 rad=12.0 tmin=650419201.0 tmax=650678401.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 8.01
user 3.39
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224038/ft2_4FGL_J0924.0+2816_daily_bin1586.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/224038/ft1_filteredMKT_4FGL_J0924.0+2816_daily_bin1586.fits evtable="EVENTS" outfile="/scratch/kocevski/224038/ft1_filtered_4FGL_J0924.0+2816_daily_bin1586.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 2.06
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224038/ft1_filtered_4FGL_J0924.0+2816_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/224038/ft2_4FGL_J0924.0+2816_daily_bin1586.fits sctable="SC_DATA" expcube=/scratch/kocevski/224038/ltcube_650419201_650678401_4FGL_J0924.0+2816_daily_bin1586.fits outfile=/scratch/kocevski/224038/expmap_650419201_650678401_4FGL_J0924.0+2816_daily_bin1586.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/224038/ltcube_650419201_650678401_4FGL_J0924.0+2816_daily_bin1586.fits
.....................!
real 195.48
user 187.40
sys 4.31

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/224038/ft1_filtered_4FGL_J0924.0+2816_daily_bin1586.fits scfile=/scratch/kocevski/224038/ft2_4FGL_J0924.0+2816_daily_bin1586.fits outfile=/scratch/kocevski/224038/cmap_650419201_650678401_4FGL_J0924.0+2816_daily_bin1586.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224038/ft1_filtered_4FGL_J0924.0+2816_daily_bin1586.fits scfile=/scratch/kocevski/224038/ft2_4FGL_J0924.0+2816_daily_bin1586.fits outfile=/scratch/kocevski/224038/cmap_HighResolution_650419201_650678401_4FGL_J0924.0+2816_daily_bin1586.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.57
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    30.406       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .85739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.742       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1074       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4934       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1786       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    88.851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7056       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3850       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8233       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2513       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=   6574.676     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2117 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1427        .90787       -.95271E-07   -.14155E-04
   2  Prefactor     27.550        22.970        .43793E-06   -.68196E-04
   3  Prefactor     .10000E-03    7.1748        .19440E-07** at limit **
   4  norm          30.397        46.072        .10679E-06   -.11966E-04
   5  Prefactor     .10000E-03    1.3458        .87672E-07** at limit **
   6  Prefactor     .10000E-03    14.585        .53820E-07** at limit **
   7  norm          .85741        .87457       -.26718E-07    .95683E-05
   8  Prefactor     4.5815        12.536       -.15020E-05   -.75933E-04
   9  Prefactor     60.680        65.043       -.10576E-06   -.49788E-04
  10  norm          1.1076        13.588        .55796E-05   -.30490E-04
  11  Prefactor     3.4933        3.6709        .23187E-06   -.28734E-04
  12  Prefactor     2.9986        75.771        .10091E-05    .16553E-04
  13  Prefactor     .10000E-03    304.69       -.26207E-05** at limit **
  14  Prefactor     88.825        71.329       -.24868E-06   -.25104E-04
  15  Prefactor     2.7028        7.8677        .10367E-05   -.12344E-05
  16  Prefactor     9.3840        9.9075        .12955E-06   -.41188E-04
  17  Prefactor     .10000E-03    .72595        .10001E-06** at limit **
  18  norm          7.8222        10.288        .19221E-07   -.35862E-04
  19  Normalizat    1.0837        .19129       -.10713E-05   -.69914E-04
  20  Prefactor     1.2513        .18490       -.21556E-07   -.11349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14271
  Prefactor  = 27.5504
  Prefactor  = 0.0001
  norm       = 30.3975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.857407
  Prefactor  = 4.58151
  Prefactor  = 60.6802
  norm       = 1.10759
  Prefactor  = 3.49329
  Prefactor  = 2.99855
  Prefactor  = 0.000100002
  Prefactor  = 88.8248
  Prefactor  = 2.70283
  Prefactor  = 9.38403
  Prefactor  = 0.0001
  norm       = 7.82224
  Normalizat = 1.08373
  Prefactor  = 1.25127
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.676     FROM HESSE     STATUS=OK           297 CALLS     2414 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1427        .88468        .62129E-04   -1.5494    
   2  Prefactor     27.550        22.743        .76262E-04   -1.4658    
   3  Prefactor     .10000E-03    7.2062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.397        46.096        .72661E-04   -1.4605    
   5  Prefactor     .10000E-03    1.3571        .91858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .85741        .89857        .74553E-03   -1.5523    
   8  Prefactor     4.5815        12.554        .18805E-03   -1.5280    
   9  Prefactor     60.680        65.063        .51482E-04   -1.4148    
  10  norm          1.1076        13.624        .44967E-03   -1.5497    
  11  Prefactor     3.4933        3.6635        .15161E-03   -1.5334    
  12  Prefactor     2.9986        75.069        .22730E-03   -1.5362    
  13  Prefactor     .10000E-03    308.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     88.825        71.347        .42626E-04   -1.3820    
  15  Prefactor     2.7028        7.8411        .24764E-03   -1.5379    
  16  Prefactor     9.3840        9.9320        .13082E-03   -1.5095    
  17  Prefactor     .10000E-03    .73130        .67446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8222        10.269        .14336E-03   -1.5149    
  19  Normalizat    1.0837        .22711        .26998E-03   -.90276    
  20  Prefactor     1.2513        .22095        .25552E-03   -.84768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50183e-10
Minuit parameter uncertainties:
  1  0.884689
  2  22.7503
  3  5.84059e-06
  4  46.1502
  5  6.85312e-07
  6  6.46219e-06
  7  0.898584
  8  12.5615
  9  65.139
  10  7.77087
  11  3.66372
  12  30.0482
  13  0.00145382
  14  71.4159
  15  7.84407
  16  9.93378
  17  3.74263e-08
  18  10.271
  19  0.227312
  20  0.221119
Done.

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

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  3.493e+00  3.664e+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:  1.251e+00  2.211e-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.084e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 141.005 28.276
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 9.72e-06 +/- 1.02e-05

TS (Fixed Index): 1.60
Ra Dec: 141.005 28.276
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224038/likelihoodResults_650419201_650678401_4FGL_J0924.0+2816_daily_bin1586.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) = 6574.66375332
delta logL = 0.0119793225258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6574.66129438
delta logL = 0.0144382619555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7468       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3636       1.0000          .0000       10.000    
     3 'Normalizat'    1.0886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2479       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=   6574.661     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7452        137.88        .52147E-02    .25619E-03
   2  Index         2.3630        5.7309        .24046        .28717E-04
   3  Normalizat    1.0887        .86255E-01    .60918E-01   -.38410E-04
   4  Prefactor     1.2478        .71523E-01    .57847E-01   -.53351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.74522
  Index      = 2.36297
  Normalizat = 1.08875
  Prefactor  = 1.24784
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.661     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7452        4.1418        .15870E-03   -1.5321    
   2  Index         2.3630        .82627        .10918E-01   -.55555    
   3  Normalizat    1.0887        .21811        .26943E-03   -.90114    
   4  Prefactor     1.2478        .21871        .25581E-03   -.84872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42364e-12
Minuit parameter uncertainties:
  1  4.14215
  2  0.831572
  3  0.218289
  4  0.218867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224038': 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) = 6574.66129341
delta logL = 0.0144392364427

Extracting fit parameters...

4FGL J0924.0+2816
   Spectrum: PowerLaw
276    Prefactor:  3.745e+00  4.142e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.363e+00  8.316e-01  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:  1.248e+00  2.189e-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.089e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 141.005 28.276
Photon Index (Free Index): 2.36 +/- 0.83
Photon Flux (Free Index): 3.01e-08 +/- 3.79e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.19e-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/224038/cmap_HighResolution_650419201_650678401_4FGL_J0924.0+2816_daily_bin1586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='1.04e-05', photon_flux_error='3.53e-08', dlogl='1.44e-02', energy_flux='9.72e-06', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-08-31 11:46:04.754067', photon_index_error2='0.83', photon_index2='2.36', ts='1.60', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.19e-05', EG='1.08', time_epoch_completed='1630435564.75', return_code='0', job_id='224038', GAL2='1.25', EG2='1.09', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.79e-08', ts2='1.62', photon_index='2.51' WHERE bin_id='1586' AND source_name='4FGL J0924.0+2816' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 224038: <4FGL_J0924.0+2816_daily_bin1586> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0924.0+2816_daily_bin1586 141.005 28.2755 650419201 650678401 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 :                                   601.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            841 sec.

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

